3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fileArr = array(1,2,3,4,5); var_dump($fileArr); $indexOne = array_combine(range(1, count($fileArr)), array_values($fileArr)); var_dump($indexOne);
Output for 5.0.0 - 7.2.0
array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } array(5) { [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) [5]=> int(5) }
Output for 4.4.5 - 4.4.9
array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } Fatal error: Call to undefined function: array_combine() in /in/Mr9IT on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } Fatal error: Call to undefined function: array_combine() in /in/Mr9IT on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } Fatal error: Call to undefined function: array_combine() in /in/Mr9IT on line 6