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.60.0060.01218.18
8.3.50.0080.01221.21
8.3.40.0060.00918.81
8.3.30.0110.00718.53
8.3.20.0040.00418.62
8.3.10.0040.00420.37
8.3.00.0040.00423.67
8.2.180.0060.01216.75
8.2.170.0030.01022.96
8.2.160.0150.00020.35
8.2.150.0160.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00226.16
8.2.120.0090.00317.63
8.2.110.0080.00320.73
8.2.100.0060.00617.84
8.2.90.0030.00519.14
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0080.00018.10
8.2.40.0000.00818.16
8.2.30.0030.00619.85
8.2.20.0040.00417.68
8.2.10.0040.00417.70
8.2.00.0030.00517.65
8.1.280.0120.00325.92
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00319.34
8.1.230.0040.00717.77
8.1.220.0000.00817.74
8.1.210.0070.00318.77
8.1.200.0000.01117.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0090.00018.64
8.1.160.0050.00318.82
8.1.150.0040.00418.65
8.1.140.0080.00017.46
8.1.130.0070.00017.72
8.1.120.0000.00717.52
8.1.110.0000.00717.36
8.1.100.0040.00417.46
8.1.90.0050.00517.48
8.1.80.0010.00817.45
8.1.70.0040.00517.44
8.1.60.0030.00617.48
8.1.50.0050.00517.48
8.1.40.0040.00717.51
8.1.30.0100.00317.58
8.1.20.0120.00117.58
8.1.10.0020.00817.44
8.1.00.0060.00517.38
8.0.300.0040.00418.77
8.0.290.0000.00716.62
8.0.280.0000.00818.52
8.0.270.0000.00717.23
8.0.260.0000.00616.88
8.0.250.0050.00216.94
8.0.240.0040.00416.90
8.0.230.0100.00716.92
8.0.220.0070.00516.87
8.0.210.0050.00516.87
8.0.200.0040.00616.87
8.0.190.0060.00416.85
8.0.180.0060.00416.89
8.0.170.0080.00416.86
8.0.160.0050.00616.84
8.0.150.0050.00516.71
8.0.140.0070.00316.84
8.0.130.0070.00215.04
8.0.120.0050.00416.85
8.0.110.0040.00616.73
8.0.100.0070.00416.91
8.0.90.0070.00616.87
8.0.80.0080.01016.84
8.0.70.0070.00416.86
8.0.60.0040.00716.82
8.0.50.0060.00516.83
8.0.30.0110.00916.94
8.0.20.0080.00917.19
8.0.10.0080.00417.06
8.0.00.0050.01116.98
7.4.330.0000.00514.69
7.4.320.0060.00316.64
7.4.300.0090.00516.50
7.4.290.0080.00316.48
7.4.280.0060.00816.49
7.4.270.0110.00216.48
7.4.260.0070.00514.94
7.4.250.0030.00516.54
7.4.240.0120.00016.52
7.4.230.0050.00516.40
7.4.220.0110.00516.60
7.4.210.0070.00816.55
7.4.200.0030.00616.50
7.4.190.0060.00416.70
7.4.180.0040.00816.57
7.4.160.0080.00616.53
7.4.150.0130.00416.91
7.4.140.0080.00817.35
7.4.130.0080.00716.47
7.4.120.0090.00716.48
7.4.110.0040.00916.11
7.4.100.0060.01116.65
7.4.90.0100.00916.41
7.4.80.0090.00717.76
7.4.70.0130.00216.33
7.4.60.0080.00716.45
7.4.50.0050.00516.42
7.4.40.0060.00719.25
7.4.30.0090.00616.45
7.4.20.0120.00316.37
7.4.10.0090.00415.54
7.4.00.0080.00515.35
7.3.330.0070.00314.82
7.3.320.0080.00214.76
7.3.310.0050.00616.17
7.3.300.0030.00716.20
7.3.290.0100.00516.46
7.3.280.0090.00816.34
7.3.270.0120.00316.89
7.3.260.0130.00617.60
7.3.250.0100.00616.35
7.3.240.0130.00616.53
7.3.230.0100.00516.28
7.3.220.0160.00016.16
7.3.210.0150.00316.36
7.3.200.0060.01217.80
7.3.190.0040.01216.23
7.3.180.0080.00816.41
7.3.170.0100.00516.26
7.3.160.0110.00516.15
7.3.150.0120.00316.20
7.3.140.0070.00716.05
7.3.130.0130.00215.55
7.3.120.0100.00615.28
7.3.110.0110.00615.49
7.3.100.0040.01015.59
7.3.90.0080.00515.79
7.3.80.0090.00415.50
7.3.70.0080.00815.38
7.3.60.0100.00415.55
7.3.50.0080.00715.57
7.3.40.0100.00515.69
7.3.30.0070.00515.62
7.3.20.0050.01017.40
7.3.10.0070.00617.02
7.3.00.0050.00717.03
7.2.340.0050.01016.35
7.2.330.0100.00716.50
7.2.320.0100.00716.55
7.2.310.0100.00716.50
7.2.300.0120.00316.43
7.2.290.0060.01116.36
7.2.280.0160.00016.26
7.2.270.0080.00816.23
7.2.260.0090.00615.76
7.2.250.0080.00815.62
7.2.240.0110.00515.55
7.2.230.0050.01115.59
7.2.220.0100.00515.66
7.2.210.0100.00315.56
7.2.200.0080.00515.71
7.2.190.0060.00815.73
7.2.180.0040.00915.59
7.2.170.0100.00315.72
7.2.160.0080.00815.82
7.2.150.0090.00517.64
7.2.140.0080.00417.72
7.2.130.0060.00717.28
7.2.120.0070.00717.31
7.2.110.0060.00817.27
7.2.100.0090.00417.22
7.2.90.0070.00617.28
7.2.80.0050.01017.24
7.2.70.0080.00617.23
7.2.60.0060.00717.09
7.2.50.0100.00617.29
7.2.40.0110.00417.18
7.2.30.0090.00317.24
7.2.20.0080.00617.24
7.2.10.0080.00617.26
7.2.00.0080.00617.68
7.1.330.0080.00716.81
7.1.320.0100.00416.60
7.1.310.0040.01116.69
7.1.300.0040.00816.70
7.1.290.0130.00116.68
7.1.280.0080.00516.68
7.1.270.0080.00716.70
7.1.260.0090.00516.54
7.1.250.0080.00516.11
7.1.240.0080.00616.44
7.1.230.0130.00615.78
7.1.220.0100.00316.59
7.1.210.0100.00516.52
7.1.200.0060.00916.28
7.1.190.0100.00516.56
7.1.180.0110.00316.56
7.1.170.0110.00616.50
7.1.160.0080.00616.61
7.1.150.0090.00516.66
7.1.140.0140.00216.64
7.1.130.0050.00716.51
7.1.120.0070.00716.68
7.1.110.0050.00816.63
7.1.100.0040.00717.16
7.1.90.0060.00716.64
7.1.80.0080.00516.49
7.1.70.0060.00516.61
7.1.60.0140.00417.55
7.1.50.0110.00616.83
7.1.40.0080.00816.58
7.1.30.0080.00816.54
7.1.20.0090.00816.37
7.1.10.0090.00616.41
7.1.00.0050.01718.55
7.0.330.0070.00616.10
7.0.320.0100.00316.19
7.0.310.0070.00716.12
7.0.300.0110.00316.18
7.0.290.0060.00616.15
7.0.280.0070.00516.02
7.0.270.0060.00616.11
7.0.260.0030.00916.20
7.0.250.0050.00716.29
7.0.240.0050.00916.28
7.0.230.0100.00316.27
7.0.220.0060.01016.29
7.0.210.0090.00416.30
7.0.200.0060.00516.48
7.0.190.0080.00716.26
7.0.180.0040.01116.29
7.0.170.0060.00816.32
7.0.160.0090.00416.23
7.0.150.0120.00316.23
7.0.140.0110.02418.09
7.0.130.0070.00516.08
7.0.120.0050.00916.30
7.0.110.0030.01016.02
7.0.100.0080.00516.18
7.0.90.0070.00716.18
7.0.80.0080.00316.09
7.0.70.0080.00616.20
7.0.60.0030.03517.47
7.0.50.0120.02716.77
7.0.40.0050.03216.08
7.0.30.0110.03016.02
7.0.20.0060.03016.03
7.0.10.0060.03116.02
7.0.00.0070.01716.07
5.6.400.0050.00714.90
5.6.390.0120.00315.02
5.6.380.0080.00714.91
5.6.370.0070.00715.17
5.6.360.0060.01114.95
5.6.350.0080.00514.99
5.6.340.0090.00614.91
5.6.330.0060.00614.94
5.6.320.0060.00815.05
5.6.310.0080.00615.08
5.6.300.0060.00914.96
5.6.290.0090.00315.06
5.6.280.0080.02717.04
5.6.270.0060.00715.14
5.6.260.0080.00415.03
5.6.250.0060.00715.02
5.6.240.0070.00815.04
5.6.230.0040.01015.13
5.6.220.0110.00415.03
5.6.210.0060.01716.92
5.6.200.0040.02716.20
5.6.190.0120.02816.06
5.6.180.0030.03616.14
5.6.170.0080.02816.09
5.6.160.0070.02116.13
5.6.150.0070.03416.10
5.6.140.0060.03316.03
5.6.130.0070.02716.18
5.6.120.0070.01916.09
5.6.110.0070.02116.04
5.6.100.0100.01516.18
5.6.90.0090.02816.02
5.6.80.0050.03215.71
5.6.70.0060.02515.85
5.6.60.0090.03015.93
5.6.50.0070.03015.87
5.6.40.0090.02615.90
5.6.30.0070.03215.88
5.6.20.0050.03215.85
5.6.10.0090.01815.93
5.6.00.0060.02915.87
5.5.380.0060.00615.28
5.5.370.0060.00615.11
5.5.360.0110.00315.00
5.5.350.0110.01616.91
5.5.340.0090.03015.99
5.5.330.0070.02915.97
5.5.320.0050.02915.88
5.5.310.0060.03015.97
5.5.300.0050.02115.87
5.5.290.0050.03415.86
5.5.280.0060.03115.99
5.5.270.0020.02516.10
5.5.260.0090.01515.98
5.5.250.0100.02715.93
5.5.240.0080.02215.70
5.5.230.0060.02815.76
5.5.220.0080.02915.86
5.5.210.0090.02815.79
5.5.200.0060.02715.65
5.5.190.0090.02715.63
5.5.180.0090.02315.67
5.5.170.0000.01115.00
5.5.160.0060.02115.69
5.5.150.0080.02815.66
5.5.140.0070.02815.78
5.5.130.0060.03015.65
5.5.120.0090.02715.59
5.5.110.0070.03015.63
5.5.100.0070.03115.72
5.5.90.0060.02515.70
5.5.80.0060.02915.70
5.5.70.0060.03115.69
5.5.60.0060.02815.67
5.5.50.0090.01415.80
5.5.40.0060.01815.79
5.5.30.0110.01215.68
5.5.20.0040.01815.81
5.5.10.0090.01315.58
5.5.00.0060.01515.76
5.4.450.0100.01914.68
5.4.440.0080.01614.69
5.4.430.0060.01914.67
5.4.420.0070.01914.67
5.4.410.0080.02514.58
5.4.400.0040.01914.54
5.4.390.0050.02414.51
5.4.380.0070.02714.52
5.4.370.0060.03014.52
5.4.360.0060.02914.50
5.4.350.0090.02614.51
5.4.340.0040.03014.52
5.4.330.0080.00112.21
5.4.320.0100.02714.64
5.4.310.0070.01714.58
5.4.300.0100.02614.50
5.4.290.0030.03114.55
5.4.280.0070.02714.57
5.4.270.0050.02914.57
5.4.260.0100.02214.59
5.4.250.0030.03314.54
5.4.240.0060.02114.47
5.4.230.0040.02214.47
5.4.220.0060.02414.45
5.4.210.0070.01914.41
5.4.200.0060.02114.45
5.4.190.0050.01614.40
5.4.180.0070.01214.49
5.4.170.0090.01214.38
5.4.160.0040.01714.46
5.4.150.0040.01714.46
5.4.140.0050.01413.65
5.4.130.0040.01513.67
5.4.120.0060.01513.63
5.4.110.0070.01213.66
5.4.100.0050.01613.68
5.4.90.0050.01913.74
5.4.80.0050.01413.71
5.4.70.0060.01413.71
5.4.60.0070.01713.66
5.4.50.0040.01613.68
5.4.40.0060.01413.75
5.4.30.0050.01413.71
5.4.20.0060.01313.64
5.4.10.0050.01713.75
5.4.00.0060.01713.47
5.3.290.0070.02613.21
5.3.280.0050.02613.09
5.3.270.0050.01913.15
5.3.260.0050.01513.22
5.3.250.0040.01713.26
5.3.240.0060.01213.29
5.3.230.0080.02413.18
5.3.220.0030.01713.18
5.3.210.0070.01513.10
5.3.200.0030.01413.03
5.3.190.0050.01413.07
5.3.180.0030.01513.21
5.3.170.0060.01713.16
5.3.160.0040.01813.24
5.3.150.0020.01813.20
5.3.140.0020.01913.24
5.3.130.0050.01513.25
5.3.120.0020.01913.14
5.3.110.0080.01413.13
5.3.100.0050.01413.01
5.3.90.0070.01112.90
5.3.80.0010.01912.90
5.3.70.0050.01612.91
5.3.60.0050.01312.97
5.3.50.0040.01612.96
5.3.40.0020.01712.93
5.3.30.0070.01212.93
5.3.20.0020.01712.82
5.3.10.0050.01312.85
5.3.00.0030.01612.78

preferences:
48.35 ms | 401 KiB | 5 Q