3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $relate_to = array(11,22); $before = ''; $relate_to_before = explode(',', $before); sort($relate_to_before); $relate_to_new = array_diff($relate_to, $relate_to_before); var_dump($relate_to_new);
Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.23, 7.3.0 - 7.3.10
Parse error: syntax error, unexpected '<', expecting end of file in /in/pN574 on line 3
Process exited with code 255.

preferences:
173.07 ms | 1395 KiB | 50 Q