3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = ""; $pattern = ""; preg_match($pattern, $subject, $matches, PREG_PATTERN_ORDER); print_r($matches);
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Empty regular expression in /in/gTEDE on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: Empty regular expression in /in/gTEDE on line 4
Output for 4.3.0 - 4.3.10, 5.0.0 - 5.1.6
Warning: Wrong value for parameter 4 in call to preg_match() in /in/gTEDE on line 4
Output for 4.3.11 - 4.4.9
Warning: preg_match(): Wrong value for parameter 4 in call to preg_match() in /in/gTEDE on line 4