run code in 200+ PHP versions simultaneously
<?php $subusers = [" hey", " h i", " ", "wh@t"]; foreach ($subusers as $subuser) { echo "Assess \"$subuser\":\t"; if (!strlen($subuser = trim($subuser))) { echo "* Username not entered"; } elseif (!ctype_alnum($subuser)) { echo "* Username not alphanumeric"; } echo "\n"; }
based on cqQiW

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Assess " hey": Assess " h i": * Username not alphanumeric Assess " ": * Username not entered Assess "wh@t": * Username not alphanumeric

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