3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('NULL')); var_dump(json_last_error);
based on nn20D
Output for 7.2.0
NULL Warning: Use of undefined constant json_last_error - assumed 'json_last_error' (this will throw an Error in a future version of PHP) in /in/uqWQp on line 4 string(15) "json_last_error"
Output for 5.3.20 - 7.1.10
NULL Notice: Use of undefined constant json_last_error - assumed 'json_last_error' in /in/uqWQp on line 4 string(15) "json_last_error"