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_all("/(<p>)?(.+))<br>/", $html, $matches); print_r($matches);
Output for 5.2.0 - 5.6.21, 7.0.0 - 7.1.0
Warning: preg_match_all(): Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 11
Output for hhvm-3.12.0
Warning: Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 11
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.11 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 5.1.6
Warning: preg_match_all(): Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 11 Array ( )
Output for 4.4.2, 5.1.2
Warning: preg_match_all(): Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 12 Array ( )
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 11 Array ( )