3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a =array('1,2,6'); $b =array('2,3,1'); $a = explode(',',$a[0]); $b = explode(',',$b[0]); var_dump($a); var_dump($b); var_dump(array_combine($a,$b));
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "6" } array(3) { [0]=> string(1) "2" [1]=> string(1) "3" [2]=> string(1) "1" } array(3) { [1]=> string(1) "2" [2]=> string(1) "3" [6]=> string(1) "1" }
Output for 4.4.5 - 4.4.9
array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "6" } array(3) { [0]=> string(1) "2" [1]=> string(1) "3" [2]=> string(1) "1" } Fatal error: Call to undefined function: array_combine() in /in/8PmMR on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "6" } array(3) { [0]=> string(1) "2" [1]=> string(1) "3" [2]=> string(1) "1" } Fatal error: Call to undefined function: array_combine() in /in/8PmMR on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "6" } array(3) { [0]=> string(1) "2" [1]=> string(1) "3" [2]=> string(1) "1" } Fatal error: Call to undefined function: array_combine() in /in/8PmMR on line 11