3v4l.org

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