3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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"]; if (in_array("dos", $a, true)) { echo "<br>Si"; }
Output for 4.3.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Got Irixpng aaaa
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.1
Got Irix
Process exited with code 139.