3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match("/([a-z]*)\*?\(([^\)]+)\)\*?([a-z]*)/", "a+a*(c+d)*bb+a", $matches); var_dump($matches);
based on bvers
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(4) { [0]=> string(10) "a*(c+d)*bb" [1]=> string(1) "a" [2]=> string(3) "c+d" [3]=> string(2) "bb" }
Output for hhvm-3.10.0

Process exited with code 153.