3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array(1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7); $a2 = array(2=>2, 4=>4, 6=>6, 8=>8); $a3 = array_diff($a2, $a1)
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected end of file in /in/JfAZA on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/JfAZA on line 4
Process exited with code 255.