3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $blah = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)'; if (preg_match('/MSIE ([0-9]*(?:\\.[0-9]*)?)([0-9.]*);/', $_SERVER['HTTP_USER_AGENT'], $matches)){ var_dump($matches); }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: HTTP_USER_AGENT in /in/T0DiZ on line 3
Output for 4.3.0 - 5.2.17
Notice: Undefined index: HTTP_USER_AGENT in /in/T0DiZ on line 3