3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab1 = array(10,13,15,18); $tab2 = array(13,10,18,23); $merge = array_intersect($tab1, $tab2; echo '<pre>'.print_r($merge,true).'</pre>';
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
Parse error: syntax error, unexpected ';' in /in/0YHbq on line 5
Process exited with code 255.

preferences:
178.25 ms | 1399 KiB | 62 Q