3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode("", true, 512, 0)); var_dump(json_last_error_msg());
based on Xppej
Output for 7.0.0 - 7.3.0alpha1
NULL string(12) "Syntax error"
Output for 5.5.24 - 5.6.21
NULL string(8) "No error"
Output for 5.4.12 - 5.4.45
NULL Fatal error: Call to undefined function json_last_error_msg() in /in/1fS5u on line 4
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Warning: json_decode() expects at most 3 parameters, 4 given in /in/1fS5u on line 3 NULL Fatal error: Call to undefined function json_last_error_msg() in /in/1fS5u on line 4
Process exited with code 255.