3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { echo "Got Irix"; } if (in_array("mac", $os, true)) { echo "Got mac"; } $a = array("uno" => "aaaa", "dos" => "BBBB") $ext = pathinfo("http://www.unitel.tv/wp-content/themes/unitel/images/main_logo.png", PATHINFO_EXTENSION); echo $ext; echo " ".$a["uno"]
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '$ext' (T_VARIABLE) in /in/9tULh on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/9tULh on line 12
Process exited with code 255.

preferences:
188.3 ms | 1395 KiB | 67 Q