3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php array_fill ( 0 , $num , $value++ );
Output for 5.6.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Undefined variable: num in /in/bBLG8 on line 3 Notice: Undefined variable: value in /in/bBLG8 on line 3
Output for hhvm-3.12.0
Notice: Undefined variable: num in /in/bBLG8 on line 3 Notice: Undefined variable: value in /in/bBLG8 on line 3 Warning: array_fill() expects parameter 2 to be integer, null given in /in/bBLG8 on line 3
Output for 5.0.4 - 5.5.38
Notice: Undefined variable: num in /in/bBLG8 on line 3 Notice: Undefined variable: value in /in/bBLG8 on line 3 Warning: array_fill(): Number of elements must be positive in /in/bBLG8 on line 3
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: num in /in/bBLG8 on line 3 Notice: Undefined variable: value in /in/bBLG8 on line 3 Warning: array_fill(): Number of elements must be positive in /in/bBLG8 on line 3
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: num in /in/bBLG8 on line 3 Notice: Undefined variable: value in /in/bBLG8 on line 3 Warning: array_fill() [http://www.php.net/function.array-fill]: Number of elements must be positive in /in/bBLG8 on line 3