3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regex = '(Noki|Eric|SAMS|Mini|Mobi|SymbOS|iPhone|HTC)'; return preg_match($regex, $_SERVER['HTTP_USER_AGENT']);
based on WBO3j
Output for 5.3.0 - 7.2.0
Notice: Undefined index: HTTP_USER_AGENT in /in/9cjjK on line 3
Output for 4.3.0 - 5.2.17
Notice: Undefined index: HTTP_USER_AGENT in /in/9cjjK on line 3