3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('~([a-z])([0-9])~', 'b53d34a32', $matches); var_dump($matches); print str_repeat('=-', 42); preg_match_all('~([a-z])([0-9])~', 'b53d34a32', $matches, PREG_OFFSET_CAPTURE); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(3) { [0]=> string(2) "b5" [1]=> string(2) "d3" [2]=> string(2) "a3" } [1]=> array(3) { [0]=> string(1) "b" [1]=> string(1) "d" [2]=> string(1) "a" } [2]=> array(3) { [0]=> string(1) "5" [1]=> string(1) "3" [2]=> string(1) "3" } } =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-array(3) { [0]=> array(3) { [0]=> array(2) { [0]=> string(2) "b5" [1]=> int(0) } [1]=> array(2) { [0]=> string(2) "d3" [1]=> int(3) } [2]=> array(2) { [0]=> string(2) "a3" [1]=> int(6) } } [1]=> array(3) { [0]=> array(2) { [0]=> string(1) "b" [1]=> int(0) } [1]=> array(2) { [0]=> string(1) "d" [1]=> int(3) } [2]=> array(2) { [0]=> string(1) "a" [1]=> int(6) } } [2]=> array(3) { [0]=> array(2) { [0]=> string(1) "5" [1]=> int(1) } [1]=> array(2) { [0]=> string(1) "3" [1]=> int(4) } [2]=> array(2) { [0]=> string(1) "3" [1]=> int(7) } } }

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:
51.77 ms | 404 KiB | 8 Q