3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_fill(0, 3, 'banana'));
based on RcWF8
Output for 5.6.0 - 7.3.0alpha1
array(3) { [0]=> string(6) "banana" [1]=> string(6) "banana" [2]=> string(6) "banana" }