3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('', true)); var_dump(json_last_error()); var_dump(json_last_error_msg());
based on S9P3v
Output for 7.0.0 - 7.2.0
NULL int(4) string(12) "Syntax error"
Output for 5.5.24 - 5.6.28
NULL int(0) string(8) "No error"
Output for 5.3.18 - 5.4.45
NULL int(0) Fatal error: Call to undefined function json_last_error_msg() in /in/Gr93E on line 5
Process exited with code 255.