3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $content = <<<CONTENT bab @tag CONTENT; $matches = array(); var_dump(preg_match('/^a/', $content, $matches, 0, 1) === 1); var_dump(preg_match('/^(\A|\n)\w*@/', $content, $matches, 0, 1) === 1);
based on BXpJU
Output for 4.3.3 - 7.1.0
bool(false) bool(false)
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for preg_match() in /in/vVHaO on line 8 bool(false) Warning: Wrong parameter count for preg_match() in /in/vVHaO on line 9 bool(false)