3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(!function_exists('json_decode')) { return; } var_dump(json_decode('{"a": 1, "b":2}'));
Output for 5.2.0 - 7.1.0
object(stdClass)#1 (2) { ["a"]=> int(1) ["b"]=> int(2) }
Output for 4.3.0 - 5.1.6