3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = ''; $host = ''; if (preg_match($pattern, $host)) { echo 'Matched'; } else { echo 'Not matched.'; }
Output for 5.6.0 - 7.3.0alpha1
Warning: preg_match(): Empty regular expression in /in/lMLYT on line 6 Not matched.