3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(preg_match('/MSIE (.*?);/', "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" ) || preg_match('/^(?=.*(Trident))(?=.*(rv:11.0)).*$/', "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" )) { $url = 'IE detected'; } else { $url = 'not detected'; } echo $url;
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
IE detected
Output for hhvm-3.10.0

Process exited with code 153.