3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = 1; $arr = array_fill ( 0 , 3 , $value++ ); var_dump($arr);
Output for 4.3.0 - 7.1.0
array(3) { [0]=> int(1) [1]=> int(1) [2]=> int(1) }