3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a[] = (object) array('one'); $a[] = (object) array('two'); $a[] = (object) array('three'); var_export($a);
based on Al7X1
Output for 7.2.0
array ( 0 => stdClass::__set_state(array( '0' => 'one', )), 1 => stdClass::__set_state(array( '0' => 'two', )), 2 => stdClass::__set_state(array( '0' => 'three', )), )
Output for 5.3.19 - 7.1.10
array ( 0 => stdClass::__set_state(array( 0 => 'one', )), 1 => stdClass::__set_state(array( 0 => 'two', )), 2 => stdClass::__set_state(array( 0 => 'three', )), )