3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_fill(0, 0, "hi"));
Output for 5.6.8 - 7.2.0
array(0) { }
Output for 4.3.2 - 5.5.35
Warning: array_fill(): Number of elements must be positive in /in/Kiak8 on line 2 bool(false)
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/Kiak8 on line 2 bool(false)