3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $html = <<<EOT <p><b>There are currently five entries in the London Borough of Barking &amp; Dagenham (LBBD):</b></p> <p>My string 1<br> My another string<br> And this is also my string<br></p> <p><i>Some text over here</i></p> EOT; preg_match("/(.+<br>)/g", $html, $matches); print_r($matches);
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Unknown modifier 'g' in /in/RSnuY on line 11
Output for hhvm-3.12.0 - 3.13.2
Warning: Unknown modifier 'g': [/(.+<br>)/g] in /in/RSnuY on line 11
Output for hhvm-3.10.0
Warning: Unknown modifier 'g': [/(.+<br>)/g] in /in/RSnuY on line -1
Output for 4.3.11 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 5.1.6
Warning: preg_match(): Unknown modifier 'g' in /in/RSnuY on line 11 Array ( )
Output for 4.4.2, 5.1.2
Warning: preg_match(): Unknown modifier 'g' in /in/RSnuY on line 12 Array ( )
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/RSnuY on line 11 Array ( )