3v4l.org

run code in 300+ PHP versions simultaneously
<?php // on a besoin de recuperer ce qu'il y a entre () par exemple : dskjdslkjds (13254) preg_match_all('/\(([\d]+)\)/','dsdsq',$matches); var_dump(preg_match_all('/\(([\d]+)\)/','dsdsq',$matches)); preg_match_all('/\(([\d]+)\)/','dsdsds(12345)',$matches); var_dump($matches); preg_match_all('/\(([\d]+)\)/',NULL,$matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
int(0) array(2) { [0]=> array(1) { [0]=> string(7) "(12345)" } [1]=> array(1) { [0]=> string(5) "12345" } } Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/Yvr8A on line 9 array(2) { [0]=> array(0) { } [1]=> array(0) { } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.74 ms | 402 KiB | 8 Q