3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'one, two & three and four-five 123-456'; var_export( preg_split('/\d-\d(*SKIP)(*FAIL)|and|[\s,&-]+/i', $string, 0, PREG_SPLIT_NO_EMPTY) );
Output for rfc.property-hooks, git.master, git.master_jit
array ( 0 => 'one', 1 => 'two', 2 => 'three', 3 => 'four', 4 => 'five', 5 => '123-456', )

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:
47.14 ms | 1116 KiB | 4 Q