3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array_fill(-5, 6, 'bbbb'); print_r($a);
based on 4S0Pu
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [-5] => bbbb [0] => bbbb [1] => bbbb [2] => bbbb [3] => bbbb [4] => bbbb )