3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // on a besoin de recuperer ce qu'il y a entre () par exemple : dskjdslkjds (13254) preg_match_all('/\(([\d]+)\)/','dsdsq',$matches); var_dump($matches); preg_match_all('/\(([\d]+)\)/','',$matches); var_dump($matches); $test = preg_match_all('/\(([\d]+)\)/',NULL,$matches); var_dump($test);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> array(0) { } [1]=> array(0) { } } array(2) { [0]=> array(0) { } [1]=> array(0) { } } int(0)
Output for hhvm-3.10.0

Process exited with code 153.