3v4l.org

run code in 300+ PHP versions simultaneously
<?php$strings = array('AbCd1zyZ9', 'foo!#$bar');foreach ($strings as $testcase) {    if (ctype_alnum($testcase)) {        echo "The string $testcase consists of all letters or digits.\n";    } else {        echo "The string $testcase does not consist of all letters or digits.\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.70.0070.00718.30
8.3.60.0100.01016.63
8.3.50.0140.00522.96
8.3.40.0110.00418.89
8.3.30.0070.00719.01
8.3.20.0040.00420.16
8.3.10.0000.00723.53
8.3.00.0080.00019.00
8.2.180.0110.00316.63
8.2.170.0080.00822.96
8.2.160.0150.00022.09
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0090.00926.16
8.2.120.0040.00421.00
8.2.110.0100.00022.03
8.2.100.0120.00417.56
8.2.90.0040.00417.91
8.2.80.0050.00317.97
8.2.70.0030.00717.50
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0060.00317.95
8.2.30.0040.00417.87
8.2.20.0000.00717.56
8.2.10.0080.00017.90
8.2.00.0000.00917.43
8.1.280.0090.00625.92
8.1.270.0030.00523.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0040.00820.85
8.1.220.0040.00417.74
8.1.210.0100.00218.77
8.1.200.0030.00617.23
8.1.190.0050.00316.98
8.1.180.0080.00018.10
8.1.170.0040.00418.51
8.1.160.0040.00421.98
8.1.150.0000.00718.73
8.1.140.0070.00017.19
8.1.130.0030.00317.79
8.1.120.0040.00417.23
8.1.110.0040.00417.39
8.1.100.0040.00417.21
8.1.90.0030.00317.33
8.1.80.0030.00317.25
8.1.70.0000.00717.23
8.1.60.0050.00217.50
8.1.50.0040.00417.33
8.1.40.0040.00417.43
8.1.30.0000.00717.44
8.1.20.0040.00417.54
8.1.10.0000.00717.30
8.1.00.0030.00517.39
8.0.300.0000.00819.89
8.0.290.0040.00416.63
8.0.280.0050.00318.34
8.0.270.0070.00017.18
8.0.260.0030.00318.29
8.0.250.0000.00716.70
8.0.240.0070.00016.84
8.0.230.0000.00716.76
8.0.220.0040.00416.76
8.0.210.0030.00316.70
8.0.200.0000.00816.82
8.0.190.0000.00716.74
8.0.180.0050.00216.76
8.0.170.0000.00816.68
8.0.160.0000.00716.73
8.0.150.0000.00716.60
8.0.140.0070.00016.75
8.0.130.0050.00013.37
8.0.120.0090.00016.73
8.0.110.0000.00716.73
8.0.100.0070.00016.66
8.0.90.0040.00416.79
8.0.80.0070.01516.75
8.0.70.0090.00016.63
8.0.60.0080.00016.70
8.0.50.0000.00716.75
8.0.30.0090.01216.75
8.0.20.0110.00917.40
8.0.10.0030.00316.90
8.0.00.0070.01016.67
7.4.330.0000.00515.15
7.4.320.0000.00616.46
7.4.300.0060.00016.32
7.4.290.0030.00316.48
7.4.280.0000.00716.32
7.4.270.0000.00716.38
7.4.260.0060.00316.38
7.4.250.0040.00416.38
7.4.240.0020.00516.37
7.4.230.0000.00716.54
7.4.220.0090.00916.31
7.4.210.0030.01316.55
7.4.200.0030.00316.45
7.4.160.0080.00816.37
7.4.150.0170.00017.40
7.4.140.0060.01117.86
7.4.130.0040.01416.34
7.4.120.0110.00916.31
7.4.110.0080.00816.46
7.4.100.0100.00716.37
7.4.90.0040.01316.26
7.4.80.0170.00319.39
7.4.70.0030.01616.53
7.4.60.0090.01216.35
7.4.50.0060.00316.18
7.4.40.0090.00616.40
7.4.30.0130.00316.45
7.3.330.0040.00213.06
7.3.320.0030.00313.14
7.3.310.0060.00016.20
7.3.300.0000.00616.15
7.3.290.0030.01116.16
7.3.280.0140.00416.12
7.3.270.0100.00717.40
7.3.260.0090.00916.23
7.3.250.0130.00516.36
7.3.240.0040.01316.12
7.3.230.0140.00316.47
7.3.210.0110.00716.23
7.3.200.0000.01519.39
7.3.190.0120.00916.50
7.3.180.0040.01116.20
7.3.170.0030.01316.27
7.3.160.0140.00916.23
7.2.330.0040.01316.44
7.2.320.0160.00716.53
7.2.310.0070.01116.55
7.2.300.0040.01316.55
7.2.290.0040.01216.63
5.4.320.0090.03412.45
5.4.310.0070.03912.45
5.4.300.0080.03812.45
5.4.290.0050.04012.45
5.4.280.0050.04512.34
5.4.270.0070.04512.35
5.4.260.0070.03812.35
5.4.250.0100.03612.35
5.4.240.0060.03612.34
5.4.230.0070.03812.34
5.4.220.0090.03812.34
5.4.210.0050.03612.34
5.4.200.0060.03712.34
5.4.190.0050.03612.34
5.4.180.0070.03512.33
5.4.170.0060.03812.35
5.4.160.0070.04212.34
5.4.150.0040.03912.34
5.4.140.0070.03612.02
5.4.130.0060.04112.01
5.4.120.0070.03811.97
5.4.110.0100.03911.96
5.4.100.0050.04511.96
5.4.90.0060.04711.96
5.4.80.0060.03611.96
5.4.70.0050.03711.96
5.4.60.0080.03511.96
5.4.50.0050.03511.96
5.4.40.0070.03411.95
5.4.30.0040.03811.95
5.4.20.0040.03611.95
5.4.10.0050.03811.95
5.4.00.0070.03611.44

preferences:
33.81 ms | 401 KiB | 5 Q