3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $a = array( array(0, 'foo'), array(1, 'bar') ); $b = array( array(0, 'foo'), array(2, 'baz') ); $intersect = array_intersect($a, $b); var_dump($intersect);
Output for 5.3.0 - 5.3.18, 5.4.0 - 5.4.8
Parse error: syntax error, unexpected '<' in /in/j7Aq2 on line 2
Process exited with code 255.

preferences:
168.22 ms | 1395 KiB | 35 Q