3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_intersect_key(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10), array_flip(0, 2, 5, 7)));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_flip() expects exactly 1 parameter, 4 given in /in/lGqeY on line 2 Warning: array_intersect_key(): Argument #2 is not an array in /in/lGqeY on line 2 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_flip() expects exactly 1 parameter, 4 given in /in/lGqeY on line 2 Warning: array_intersect_key() expects parameter 2 to be an array or collection in /in/lGqeY on line 2 NULL
Output for 5.1.0 - 5.2.17
Warning: Wrong parameter count for array_flip() in /in/lGqeY on line 2 Warning: array_intersect_key(): Argument #2 is not an array in /in/lGqeY on line 2 NULL
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function array_intersect_key() in /in/lGqeY on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_intersect_key() in /in/lGqeY on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_intersect_key() in /in/lGqeY on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_intersect_key() in /in/lGqeY on line 2