3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING This, actually, is (a) nice' old'er string, as Raphaël said, "divided and conquered"! STRING; var_export( preg_match_all("~[\pL\pM]+[\pL\pM'-]*(?<!['-])~u", $string, $matches) ? $matches[0] : [] );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'This', 1 => 'actually', 2 => 'is', 3 => 'a', 4 => 'nice', 5 => 'old\'er', 6 => 'string', 7 => 'as', 8 => 'Raphaël', 9 => 'said', 10 => 'divided', 11 => 'and', 12 => 'conquered', )

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:
28.6 ms | 406 KiB | 5 Q