3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/^[a-zA-Z ,.\p{Han}]+$/"; $tests = array( 'Mr Smith', 'Mr. Smith', 'Mr. 123 Smith', '姓名' ); foreach ($tests as $test) { if (preg_match($re, utf8_decode($test)) !== 1) { echo $test . ' failed' . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function utf8_decode() is deprecated in /in/f2b2G on line 12 Deprecated: Function utf8_decode() is deprecated in /in/f2b2G on line 12 Deprecated: Function utf8_decode() is deprecated in /in/f2b2G on line 12 Mr. 123 Smith failed Deprecated: Function utf8_decode() is deprecated in /in/f2b2G on line 12 姓名 failed

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