3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $browser = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 "; switch ($browser) { case "Chrome": echo "Chrome"; break; case "Firefox": echo "Firefox"; break; case "cake": echo "i is cake"; break; }
Output for 4.3.0 - 7.1.0