3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php sort($var1) = array(213, 247, 221, 247, 220, 214, 203, 233, 330, 212, 238, 214, 213, 247, 221, 247, 220, 214, 203, 233); sort($var2) = array(307, 357, 319, 357, 317, 308, 293, 336, 476, 306, 343, 308, 307, 357, 319, 357, 317, 308, 293, 336); print_r(array_diff($var1, $var2));
based on kM9dv
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.4.34
Fatal error: Can't use function return value in write context in /in/r7IEh on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '=' in /in/r7IEh on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '=' in /in/r7IEh on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/r7IEh on line 4
Process exited with code 255.