3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array_fill(5, -6, 'bbbb'); print_r($a);
based on ob9Ec
Output for 5.6.8 - 7.2.0
Warning: array_fill(): Number of elements can't be negative in /in/4S0Pu on line 2
Output for 4.3.2 - 5.5.35
Warning: array_fill(): Number of elements must be positive in /in/4S0Pu on line 2
Output for 4.3.0 - 4.3.1
Warning: array_fill() [http://www.php.net/function.array-fill]: Number of elements must be positive in /in/4S0Pu on line 2