3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_regex_encoding("UTF-8"); mb_ereg_search_init('(ab(cd)ef)'); mb_ereg_search('\(.+\)', 'pbl'); $r = mb_ereg_search_getregs(); var_dump($r);
Output for 4.3.4 - 4.4.9, 5.0.4 - 7.1.0
array(1) { [0]=> string(10) "(ab(cd)ef)" }
Output for 5.0.0 - 5.0.3
<br /> <b>Warning</b>: mb_ereg_search() [<a href='function.mb-ereg-search'>function.mb-ereg-search</a>]: mbregex search failure in mbregex_search(): undefined bytecode (bug) in <b>/in/1cpSp</b> on line <b>4</b><br /> bool(false)
Output for 4.3.2 - 4.3.3
<br /> <b>Fatal error</b>: Call to undefined function: mb_regex_encoding() in <b>/in/1cpSp</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: mb_regex_encoding() in <b>/in/1cpSp</b> on line <b>2</b><br />