3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $contents = json_decode('', true); if (json_last_error() != JSON_ERROR_NONE) { echo 'oh no, error: ', json_last_error_msg(), PHP_EOL; } var_dump($contents);
based on 71KAj
Output for 7.0.0 - 7.2.0
oh no, error: Syntax error NULL
Output for 5.5.0 - 5.6.28
NULL