3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('', 'toto', $machtes));var_dump($matches);
Output for 5.0.4 - 7.1.0
Warning: preg_match(): Empty regular expression in /in/HcPsg on line 3 bool(false) Notice: Undefined variable: matches in /in/HcPsg on line 3 NULL
Output for 4.3.11 - 5.0.3
Warning: preg_match(): Empty regular expression in /in/HcPsg on line 3 bool(false) Notice: Undefined variable: matches in /in/HcPsg on line 3 NULL
Output for 4.3.0 - 4.3.10
Warning: Empty regular expression in /in/HcPsg on line 3 bool(false) Notice: Undefined variable: matches in /in/HcPsg on line 3 NULL