3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(1, 70000); $arr = array_combine($a, array_fill($a, count($a), 0));
Output for 7.0.0 - 7.1.0
Warning: array_fill() expects parameter 1 to be integer, array given in /in/1npPX on line 4 Warning: array_combine() expects parameter 2 to be array, null given in /in/1npPX on line 4
Output for hhvm-3.10.0 - 3.13.2
Warning: array_fill() expects parameter 1 to be integer, array given in /in/1npPX on line 4 Warning: Invalid operand type was used: array_combine expects arrays or collections in /in/1npPX on line 4
Output for 5.3.0 - 5.6.28
Warning: array_fill() expects parameter 1 to be long, array given in /in/1npPX on line 4 Warning: array_combine() expects parameter 2 to be array, null given in /in/1npPX on line 4
Output for 5.0.0 - 5.2.17
Warning: array_fill(): Wrong data type for start key in /in/1npPX on line 4 Warning: array_combine() expects parameter 2 to be array, boolean given in /in/1npPX on line 4
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/1npPX on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/1npPX on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/1npPX on line 4