3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { echo "Got Irix"; } if (in_array("mac", $os, true)) { echo "Got mac"; } $ext = pathinfo("http://www.unitel.tv/wp-content/themes/unitel/images/main_logo.png", PATHINFO_EXTENSION); echo $ext;
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '<' in /in/1AHbb on line 2
Process exited with code 255.