3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array_fill(5, -6, 'bbbb'); print_r($a);
based on ob9Ec
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_fill(): Number of elements can't be negative in /in/4S0Pu on line 2
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: 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