3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("lx", $os)) { echo "Got Irix"; } if (in_array("mac", $os)) { echo "Got mac"; }
Output for 4.3.0 - 7.1.0