3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $std = new stdClass; $std->test="test"; echo @json_encode($std, JSON_PRETTY_PRINT); ?>
Output for 5.4.0 - 7.2.0
{ "test": "test" }
Output for 4.3.0 - 4.3.1, 5.2.0 - 5.3.29
Output for 4.3.2 - 5.1.6

Process exited with code 255.