3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'T1 - X1(1), 7 T2 - C2(-9), -15 T3 - Y2(1), 3 T5 - C2(-1), 100'; print_r(preg_split('/-\d(*SKIP)(*FAIL)|\s*[-,#\n#()]\s*/', $string, -1, PREG_SPLIT_NO_EMPTY));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => T1 [1] => X1 [2] => 1 [3] => 7 [4] => T2 [5] => C2 [6] => -9 [7] => -15 [8] => T3 [9] => Y2 [10] => 1 [11] => 3 [12] => T5 [13] => C2 [14] => -1 [15] => 100 )

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