3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var1 = sort(array(213, 247, 221, 247, 220, 214, 203, 233, 330, 212, 238, 214, 213, 247, 221, 247, 220, 214, 203, 233)); $var2 = sort(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 fkNVe
Output for 4.3.2 - 5.4.34
Fatal error: Only variables can be passed by reference in /in/kM9dv on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Only variables can be passed by reference in /in/kM9dv on line 4