3v4l.org

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

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.00.0030.01315.02
7.2.100.3540.01014.79
7.2.90.3240.00014.13
7.2.80.0120.00914.62
7.2.70.1220.01014.80
7.2.60.2470.01015.02
7.2.50.1310.01015.17
7.2.40.3820.00314.71
7.2.30.2430.00614.40
7.2.20.3550.00614.71
7.2.10.2080.01014.52
7.2.00.2760.00314.59
7.1.220.4050.00313.64
7.1.210.3260.00713.93
7.1.200.2780.00614.03
7.1.190.2850.01013.75
7.1.180.3810.01314.06
7.1.170.0780.01013.89
7.1.160.4270.00313.68
7.1.150.3320.01013.36
7.1.140.3980.01213.43
7.1.130.3640.00713.48
7.1.120.3930.00713.86
7.1.110.2250.00713.69
7.1.100.4830.00713.79
7.1.90.2460.00313.41
7.1.80.3470.01313.80
7.1.70.2840.01013.80
7.1.60.0500.01131.61
7.1.50.3100.01631.55
7.1.40.6780.00331.57
7.1.30.5980.00731.56
7.1.20.3890.01331.77
7.1.10.6450.00313.46
7.1.00.4160.00313.64
5.6.380.0150.00814.53