3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a = array( "a"=>"red", "b"=>"green", "c"=>"blue", "d"=>"yellow", "e"=>"brown", ); print_r(array_slice($a,0,6)); ?> </body> </html>

preferences:
43.24 ms | 402 KiB | 5 Q