3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('`{([^{}]+)}(\(((?>[^()]+|(?2))*)\))`', 'test {22413}(ghfhgfhg(())sd(d)sf) s{1}(l(k)l)dfdsf {5}(45d4fsdf4)', $m, PREG_SET_ORDER); print_r($m);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => {22413}(ghfhgfhg(())sd(d)sf) [1] => 22413 [2] => (ghfhgfhg(())sd(d)sf) [3] => ghfhgfhg(())sd(d)sf ) [1] => Array ( [0] => {1}(l(k)l) [1] => 1 [2] => (l(k)l) [3] => l(k)l ) [2] => Array ( [0] => {5}(45d4fsdf4) [1] => 5 [2] => (45d4fsdf4) [3] => 45d4fsdf4 ) )

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:
43.27 ms | 402 KiB | 8 Q