3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(array_diff(array(312, 401, 1599, 3), array(401) )); // returns [312, 1599, 3] print_r(array_filter(array(312, 401, 1599, 3), function($i){return $i != 401;})); print_r(array_delete( array(312, 401, 1599, 3), 401 ) )
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected end of file in /in/gvMWZ on line 5
Process exited with code 255.

preferences:
176.31 ms | 1395 KiB | 25 Q