3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "I search 1, regex to: no. Or... yes!"; var_export( preg_split( '#\pL+\'\pL+(*SKIP)(*FAIL)| +|\b#u', $string, flags: PREG_SPLIT_NO_EMPTY ) ); /* array ( 0 => 'I', 1 => 'search', 2 => '1', 3 => ',', 4 => 'regex', 5 => '(', 6 => 'regular', 7 => 'expression', 8 => ')', 9 => 'to', 10 => ':', 11 => 'That', 12 => '\'s', 13 => 'it', 14 => 'is', 15 => '!', 16 => 'Und', 17 => 'über', 18 => 'den', 19 => 'Wolken', 20 => 'müssen', 21 => 'wir', 22 => '...', ) */
Output for git.master, git.master_jit
array ( 0 => 'I', 1 => 'search', 2 => '1', 3 => ',', 4 => 'regex', 5 => 'to', 6 => ':', 7 => 'no', 8 => '.', 9 => 'Or', 10 => '...', 11 => 'yes', 12 => '!', )

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:
40.82 ms | 774 KiB | 4 Q