3v4l.org

run code in 300+ PHP versions simultaneously
<?php function matchIndetifier($str) { if ($str != preg_replace("/[^0-9a-z]/i", "", $str)) { //Invalid contains characters other than a-zA-Z0-9. } if (isnumeric($str)) { //999999 } if ($str != preg_replace("/\d/", "", $str)) { //At this part, it's not numeric, but still has numbers. Invalid. } if (ucfirst($str) == $str) { //Ullllll } if (strtolower($str) == $str) { //llllll } if (strtoupper($str) == $str) { //UUUUUU } }
Output for git.master, git.master_jit, rfc.property-hooks

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:
35.45 ms | 401 KiB | 8 Q