3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_diff(array_combine(array(1, 2, 4), array(1, 2, 5)), array_intersect(array(1, 2, 4),array(1, 2, 5)))); var_Dump(array(1, 2, 4)+array(1, 2, 5));
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(1) { [4]=> int(5) } array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(4) }
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/jt9IR on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/jt9IR on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/jt9IR on line 2