3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA T1 - X1(1), 7 T2 - C2(-9), -15 T3 - Y2(1), 3 T5 - C2(-1), 100 DATA; $result = preg_split("~\s-\s|[(),\s]~", $data, -1, PREG_SPLIT_NO_EMPTY); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(16) { [0]=> string(2) "T1" [1]=> string(2) "X1" [2]=> string(1) "1" [3]=> string(1) "7" [4]=> string(2) "T2" [5]=> string(2) "C2" [6]=> string(2) "-9" [7]=> string(3) "-15" [8]=> string(2) "T3" [9]=> string(2) "Y2" [10]=> string(1) "1" [11]=> string(1) "3" [12]=> string(2) "T5" [13]=> string(2) "C2" [14]=> string(2) "-1" [15]=> string(3) "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:
27.5 ms | 402 KiB | 8 Q