3v4l.org

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