3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(array_fill(0, 5, (object) array_flip(array('zero', 'one', 'two'))));
based on JC9G6
Output for 4.3.0 - 7.1.0
Array ( [0] => stdClass Object ( [zero] => 0 [one] => 1 [two] => 2 ) [1] => stdClass Object ( [zero] => 0 [one] => 1 [two] => 2 ) [2] => stdClass Object ( [zero] => 0 [one] => 1 [two] => 2 ) [3] => stdClass Object ( [zero] => 0 [one] => 1 [two] => 2 ) [4] => stdClass Object ( [zero] => 0 [one] => 1 [two] => 2 ) )