3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all('/(\((?>(?!<br>|[()])++|(?=\()(?1))*+\))/is', 'this () is a ( test ) right here ((l);;) so yea', $result); var_dump($result);
Output for 5.3.19 - 5.3.29, 5.4.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> array(1) { [0]=> string(2) "()" } [1]=> array(1) { [0]=> string(2) "()" } }
Output for 5.2.0 - 5.3.18, 5.4.0 - 5.4.8
Warning: preg_match_all(): Compilation failed: nothing to repeat at offset 19 in /in/BqSYc on line 2 NULL
Output for 4.3.11 - 5.1.6
Warning: preg_match_all(): Compilation failed: nothing to repeat at offset 19 in /in/BqSYc on line 2 array(0) { }
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 19 in /in/BqSYc on line 2 array(0) { }