3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = (object)[false]; $foo->{0} = true; $foo = (array)$foo; echo json_encode($foo); // {"0":false,"0":true}
Output for 7.2.0
[true]
Output for 5.5.0 - 7.1.10
{"0":false,"0":true}