3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subusers = [" hey", " wh at", " ", "wh@t"]; foreach ($subusers as $subuser) { echo "Assess \"$subuser\":\t"; if (!strlen($subuser = trim($subuser))) { echo "* Username not entered"; //} elseif (!preg_match('/^[\da-z]+$/i', $subuser)) { } elseif (!ctype_alnum($subuser)) { echo "* Username not alphanumeric"; } echo "\n"; }

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)
8.3.60.0130.00618.55
8.3.50.0150.00016.39
8.3.40.0140.00418.85
8.3.30.0110.00318.54
8.3.20.0050.00318.78
8.3.10.0080.00021.59
8.3.00.0000.00823.30
8.2.180.0040.01125.92
8.2.170.0090.00619.01
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00021.13
8.2.120.0040.00426.35
8.2.110.0000.01022.20
8.2.100.0040.00717.91
8.2.90.0090.00017.75
8.2.80.0060.00318.73
8.2.70.0040.00717.63
8.2.60.0000.00817.63
8.2.50.0080.00017.75
8.2.40.0040.00419.25
8.2.30.0040.00420.59
8.2.20.0040.00418.05
8.2.10.0000.00718.09
8.2.00.0000.00818.15
8.1.280.0100.00725.92
8.1.270.0080.00020.38
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0040.01118.89
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0040.00417.62
8.1.160.0070.00018.85
8.1.150.0000.00718.94
8.1.140.0070.00018.88
8.1.130.0030.00320.24
8.1.120.0000.00717.42
8.1.110.0000.00717.34
8.1.100.0070.00017.31
8.1.90.0050.00217.44
8.1.80.0040.00417.47
8.1.70.0050.00317.49
8.1.60.0070.00417.53
8.1.50.0080.00017.54
8.1.40.0000.00817.54
8.1.30.0040.00417.63
8.1.20.0040.00417.54
8.1.10.0080.00017.41
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0070.00018.32
8.0.270.0050.00217.36
8.0.260.0030.00320.19
8.0.250.0040.00416.96
8.0.240.0070.00016.94
8.0.230.0070.00016.91
8.0.220.0000.00716.95
8.0.210.0030.00316.86
8.0.200.0000.00916.90
8.0.190.0070.00016.96
8.0.180.0050.00316.90
8.0.170.0040.00416.96
8.0.160.0000.00816.85
8.0.150.0030.00716.72
8.0.140.0080.00016.68
8.0.130.0000.00713.28
8.0.120.0070.00016.75
8.0.110.0040.00416.74
8.0.100.0040.00416.93
8.0.90.0000.00716.95
8.0.80.0080.01116.90
8.0.70.0050.00316.71
8.0.60.0000.00816.74
8.0.50.0040.00416.91
8.0.30.0110.00917.06
8.0.20.0070.01317.40
8.0.10.0070.00016.89
8.0.00.0150.01816.73
7.4.330.0020.00215.55
7.4.320.0060.00016.60
7.4.300.0030.00316.45
7.4.290.0070.00016.42
7.4.280.0040.00416.41
7.4.270.0000.00716.61
7.4.260.0030.00316.59
7.4.250.0040.00416.53
7.4.240.0000.00716.61
7.4.230.0000.00716.53
7.4.220.0040.00416.62
7.4.210.0080.00716.62
7.4.200.0000.00616.41
7.4.160.0110.00716.58
7.4.140.0110.00817.86
7.4.130.0060.01216.52
7.4.120.0110.00716.51
7.4.110.0100.00716.47
7.4.100.0140.00416.38
7.4.90.0100.00916.39
7.4.80.0080.01219.39
7.4.70.0120.00616.31
7.4.60.0130.00916.50
7.4.50.0150.00316.21
7.4.40.0060.01116.43
7.4.10.0100.01014.77
7.4.00.0030.01314.84
7.3.330.0040.00413.08
7.3.320.0000.00713.23
7.3.310.0000.00716.28
7.3.300.0000.00716.18
7.3.290.0090.00616.36
7.3.280.0110.00916.34
7.3.260.0160.00716.36
7.3.240.0100.00716.45
7.3.230.0100.00716.36
7.3.210.0070.01016.53
7.3.200.0030.01316.42
7.3.190.0060.01016.35
7.3.180.0050.01116.31
7.3.170.0120.01216.38
7.3.160.0060.00916.40
7.3.130.0030.01314.98
7.3.120.0100.00714.85
7.3.110.0100.01014.52
7.3.100.0000.01414.81
7.3.90.0060.00914.95
7.3.80.0000.01214.58
7.3.70.0080.00314.82
7.3.60.0120.00614.88
7.3.50.0130.00614.87
7.3.40.0030.01214.88
7.3.30.0060.00614.65
7.3.20.0030.00916.78
7.3.10.0070.00716.62
7.3.00.0030.01016.82
7.2.330.0130.00616.80
7.2.320.0070.01116.46
7.2.310.0060.01216.65
7.2.300.0080.01216.69
7.2.290.0120.00416.52
7.2.260.0060.01315.21
7.2.250.0060.00814.87
7.2.240.0100.00714.99
7.2.230.0110.00714.83
7.2.220.0030.00915.16
7.2.210.0130.00015.01
7.2.200.0080.00415.14
7.2.190.0090.00314.73
7.2.180.0000.01814.88
7.2.170.0030.00715.00
7.2.160.0080.00815.09
7.2.150.0040.01216.85
7.2.140.0070.00317.09
7.2.130.0040.01116.86
7.2.120.0100.00316.89
7.2.110.0030.01016.92
7.2.100.0390.00815.71
7.2.90.1220.01115.77
7.2.80.2250.00215.87
7.2.70.0680.00215.70
7.2.60.1220.00915.86
7.2.50.0690.00615.79
7.2.40.1600.00615.71
7.2.30.1390.00815.81
7.2.20.1430.00515.81
7.2.10.1650.00515.84
7.2.00.1940.01015.84
7.1.330.0030.01015.89
7.1.320.0070.01115.78
7.1.310.0040.01115.80
7.1.300.0060.00915.90
7.1.290.0030.01415.66
7.1.280.0030.01015.65
7.1.270.0030.01015.84
7.1.260.0030.00615.86
7.1.250.0030.00615.75
7.1.240.0040.01115.63
7.1.230.0100.00315.84
7.1.220.0950.00514.80
7.1.210.0430.00814.86
7.1.200.2260.00614.83
7.1.190.2440.00614.72
7.1.180.0510.00614.79
7.1.170.2310.00814.86
7.1.160.1120.00914.61
7.1.150.1770.00614.62
7.1.140.1950.00814.69
7.1.130.1530.00614.73
7.1.120.2240.00714.64
7.1.110.1940.00814.72
7.1.100.2440.00414.65
7.1.90.1310.01014.70
7.1.80.1940.00914.73
7.1.70.0440.01014.76
7.1.60.1820.00523.59
7.1.50.2680.01123.47
7.1.40.1890.00223.71
7.1.30.0710.01523.73
7.1.20.2340.01523.79
7.1.10.2440.01014.87
7.1.00.1880.00514.75
7.0.330.0090.00315.63
7.0.320.0040.00815.39
7.0.310.0060.00315.50
7.0.300.0080.00615.56
7.0.290.0030.00615.46
7.0.280.0100.00315.51
7.0.270.0060.00615.34
7.0.260.0060.00315.41
7.0.250.0070.00715.16
7.0.240.0080.00015.44
7.0.230.0030.00915.31
7.0.220.0030.00515.55
7.0.210.0080.00415.56
7.0.200.0060.00915.49
7.0.190.0090.00015.59
7.0.180.0090.00615.46
7.0.170.0080.00815.52
7.0.160.0100.00715.55
7.0.150.0030.01015.22
7.0.140.0070.00315.44
7.0.130.0060.00615.55
7.0.120.0040.00415.43
7.0.110.0030.00515.45
7.0.100.0000.00915.36
7.0.90.0030.01015.35
7.0.80.0000.01115.45
7.0.70.0080.00015.61
7.0.60.0070.01015.42
7.0.50.0080.00815.53
7.0.40.0040.01113.68
7.0.30.0060.00613.46
7.0.20.0050.00213.51
7.0.10.0000.01313.35
7.0.00.0060.00613.33
5.6.400.0040.00814.33
5.6.390.0080.00314.36
5.6.380.0090.00714.14
5.6.370.0060.00914.46
5.6.360.0040.01114.63
5.6.350.0060.00614.11
5.6.340.0000.01413.99
5.6.330.0060.01014.39
5.6.320.0030.00513.97
5.6.310.0040.01114.39
5.6.300.0110.00014.45
5.6.290.0090.00314.69
5.6.280.0030.01014.12
5.6.270.0040.00414.36
5.6.260.0030.00614.02
5.6.250.0030.01014.32
5.6.240.0120.00614.18
5.6.230.0060.00614.36
5.6.220.0100.00614.30
5.6.210.0000.01414.39
5.6.200.0060.01014.23
5.6.190.0100.00714.30
5.6.180.0030.01014.54
5.6.170.0030.00614.36
5.6.160.0100.00314.39
5.6.150.0090.00614.23
5.6.140.0080.00014.39
5.6.130.0060.01014.27
5.6.120.0000.01014.56
5.6.110.0060.00614.21
5.6.100.0110.00414.39
5.6.90.0060.00614.35
5.6.80.0030.00714.33
5.6.70.0070.00414.55
5.6.60.0090.00914.00
5.6.50.0060.00914.20
5.6.40.0060.00613.93
5.6.30.0030.00714.09
5.6.20.0060.01014.34
5.6.10.0030.00614.23
5.6.00.0030.00914.34

preferences:
75.13 ms | 400 KiB | 5 Q