3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = json_decode(''); var_dump(array( 'result' => $result, 'json_last_error' => json_last_error(), ));
based on b8lAF
Output for 7.0.0 - 7.2.0
array(2) { ["result"]=> NULL ["json_last_error"]=> int(4) }
Output for 5.3.19 - 5.6.28
array(2) { ["result"]=> NULL ["json_last_error"]=> int(0) }