3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'This {is {{Par}m1}} plus {{Par{m3a{{Parm3b}}}} a}nd {{Parm4a||{{Par}m4b||{{Parm4c||{{Parm4d||Parm}}}}}}}}.'; $res = preg_split('~({{(?:(?!{{|}}).|(?1))*}})~', $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => This {is [1] => {{Par}m1}} [2] => plus [3] => {{Par{m3a{{Parm3b}}}} [4] => a}nd [5] => {{Parm4a||{{Par}m4b||{{Parm4c||{{Parm4d||Parm}}}}}}}} [6] => . )

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:
111.37 ms | 405 KiB | 5 Q