3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = strtoupper($str); $strlower = strtolower($str); $strlcwords = lcfirst($str); $strucwords = ucwords($str); echo $str."\t"."//Uppercase"; echo "\n"; echo $strlower."\t"."//Make first letter in every word to be small"; echo "\n"; echo $strlcwords."\t"."//Make first letter in sentence to be small"; echo "\n"; echo $strucwords."\t"."//First character of each word to be Uppercase"; echo "\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
MARY HAD A LITTLE LAMB AND SHE LOVED IT SO //Uppercase mary had a little lamb and she loved it so //Make first letter in every word to be small mARY HAD A LITTLE LAMB AND SHE LOVED IT SO //Make first letter in sentence to be small MARY HAD A LITTLE LAMB AND SHE LOVED IT SO //First character of each word to be Uppercase

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