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.]*);/', $blah, $matches)){ var_dump($matches); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(10) "MSIE 10.0;" [1]=> string(4) "10.0" [2]=> string(0) "" }