3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ">>> (1)\n"; $string = 'Text1234567890Text'; print_r(preg_match('/[\p{Latin}\p{N}]+/u', $string, $m)); echo "\n---\n"; print_r($m); echo "\n-------------------------\n\n"; echo ">>> (2)\n"; $string = 'Text1234567890Text'; print_r(preg_match('/[a-zA-Z\p{N}]+/u', $string, $m)); echo "\n---\n"; print_r($m); echo "\n-------------------------\n\n"; echo ">>> (3)\n"; $string = 'Text1234567890Text'; print_r(preg_match('/[\p{N}]+/u', $string, $m)); echo "\n---\n"; print_r($m); echo "\n-------------------------\n\n"; echo ">>> (4)\n"; $string = 'TextабвгText'; print_r(preg_match('/^[\p{Latin}\p{Cyrillic}]+$/u', $string, $m)); echo "\n---\n"; print_r($m);
Output for git.master, git.master_jit, rfc.property-hooks
>>> (1) 1 --- Array ( [0] => Text1234567890Text ) ------------------------- >>> (2) 1 --- Array ( [0] => Text1234567890Text ) ------------------------- >>> (3) 1 --- Array ( [0] => 1234567890 ) ------------------------- >>> (4) 1 --- Array ( [0] => TextабвгText )

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:
61.92 ms | 402 KiB | 8 Q