I am using this
https://github.com/raulfraile/LadybugBundle
They have three functions
ld($var1[, $var2[, ...]]): shortcut for ladybug_dump
ldd($var1[, $var2[, ...]]): shortcut for ladybug_dump_die
ldr($format, $var1[, $var2[, ...]]): shortcut for ladybug_return
First two are working but for third it says undefined function
Also i tried this to dump json then i also get error
ld(json_decode($jsonContent, true));
and i get this
UndefinedFunctionException: Attempted to call function "bccomp" from namespace "Ladybug\Type" in /var/www/html/site/Symfony/vendor/raulfraile/ladybug/src/Ladybug/Type/FloatType.php line 115