3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode(new ArrayObject(['1'])); echo json_encode([]);
based on EeX0V
Output for 5.6.0 - 7.3.0alpha1
{"0":"1"}[]