3v4l.org

run code in 300+ PHP versions simultaneously
<?php // \u{...} syntax is only allowed in PHP 7+ version_compare(PHP_VERSION, "7.0", ">=") || die; $RegularExpression = "/^[a-z\u{0430}-\u{044F}]+$/iu"; $TestStrArray = array('ABC', 'abc', "\u{0410}\u{0411}\u{0412}", "\u{0430}\u{0431}\u{0432}"); foreach ($TestStrArray as $TestStr) { $Result = preg_match($RegularExpression, $TestStr); echo $TestStr; if ($Result === false) { echo ' - Error'."\r\n"; } else { echo ' - '.($Result === 0 ? 'not found' : 'found')."\r\n"; } } // foreach ?>
Output for git.master, git.master_jit, rfc.property-hooks
ABC - found abc - found АБВ - found абв - found

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