3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a=array("a"=>"red","b"=>"green","c"=>"blue"); echo array_search("red",$a); ?> </body> </html>

preferences:
45.77 ms | 402 KiB | 5 Q