3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = ['neither', 'upper', 'lower']; $tests = ['A', 'z', '+', '0', 'ǻ', 'Ͱ', null]; foreach ($tests as $test) { $index = preg_match('~(\p{Lu})|(\p{Ll})~u', $test, $out) ? array_key_last($out) : 0; echo "{$test}: {$lookup[$index]}\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.01717.00
8.3.60.0140.00418.93
8.3.50.0090.00816.78
8.3.40.0110.01118.90
8.3.30.0110.00419.09
8.3.20.0080.00021.94
8.3.10.0080.00020.15
8.3.00.0090.00021.90
8.2.190.0040.01117.13
8.2.180.0120.00617.00
8.2.170.0040.01122.96
8.2.160.0060.00820.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0000.00819.89
8.2.110.0040.00721.02
8.2.100.0040.00718.06
8.2.90.0080.00017.99
8.2.80.0060.00319.08
8.2.70.0030.00617.88
8.2.60.0040.00418.00
8.2.50.0000.00817.88
8.2.40.0040.00418.29
8.2.30.0000.00720.46
8.2.20.0050.00518.09
8.2.10.0000.00719.46
8.2.00.0000.00818.13
8.1.280.0070.00725.92
8.1.270.0040.00421.89
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00321.99
8.1.230.0080.00420.92
8.1.220.0000.00817.74
8.1.210.0000.01218.77
8.1.200.0030.00517.48
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0040.00417.63
8.1.160.0000.00718.95
8.1.150.0000.00718.92
8.1.140.0000.00818.99
8.1.130.0040.00417.73
8.1.120.0000.00717.66
8.1.110.0040.00417.59
8.1.100.0050.00317.65
8.1.90.0060.00317.58
8.1.80.0000.00717.59
8.1.70.0000.00717.60
8.1.60.0000.00817.71
8.1.50.0060.00317.60
8.1.40.0050.00317.70
8.1.30.0040.00417.82
8.1.20.0030.00617.81
8.1.10.0050.00317.67
8.1.00.0030.00517.65
8.0.300.0000.00718.77
8.0.290.0050.00316.88
8.0.280.0000.00718.51
8.0.270.0040.00417.19
8.0.260.0030.00317.17
8.0.250.0040.00417.19
8.0.240.0000.00717.13
8.0.230.0040.00417.13
8.0.220.0000.00717.21
8.0.210.0070.00017.07
8.0.200.0070.00017.18
8.0.190.0030.00517.14
8.0.180.0000.00917.25
8.0.170.0000.00817.22
8.0.160.0040.00417.28
8.0.150.0040.00416.97
8.0.140.0070.00017.07
8.0.130.0030.00313.49
8.0.120.0040.00417.08
8.0.110.0000.00817.05
8.0.100.0080.00017.05
8.0.90.0000.00717.20
8.0.80.0060.00917.23
8.0.70.0040.00417.07
8.0.60.0000.00817.21
8.0.50.0040.00417.05
8.0.30.0110.00917.20
8.0.20.0150.00417.26
8.0.10.0040.00417.22
8.0.00.0120.00716.94
7.4.330.0000.00415.55
7.4.320.0060.00016.88
7.4.300.0000.00616.91
7.4.290.0030.00316.88
7.4.280.0050.00316.80
7.4.270.0000.00716.89
7.4.260.0070.00016.90
7.4.250.0000.00716.71
7.4.240.0030.00316.89
7.4.230.0030.00516.79
7.4.220.0030.00616.62
7.4.210.0100.00916.77
7.4.200.0000.00716.61
7.4.160.0120.00916.87
7.4.140.0060.01117.86
7.4.130.0130.00317.04
7.4.120.0090.00916.64
7.4.110.0100.00616.79
7.4.100.0040.01416.55
7.4.90.0090.00916.82
7.4.80.0070.01019.39
7.4.70.0110.01116.74
7.4.60.0030.01416.65
7.4.50.0070.00416.63
7.4.40.0150.00916.86
7.4.00.0070.01115.32
7.3.330.0050.00013.31
7.3.320.0030.00313.29
7.3.310.0000.00716.41
7.3.300.0030.00316.47
7.3.290.0080.00016.38
7.3.280.0080.00816.49
7.3.260.0110.00816.64
7.3.240.0090.00916.62
7.3.230.0130.00316.47
7.3.210.0070.01016.67
7.3.200.0060.00916.63
7.3.190.0160.00016.61
7.3.180.0080.00816.78
7.3.170.0130.00316.52
7.3.160.0120.00616.73
7.3.120.0030.01015.03
7.3.110.0000.01615.28
7.3.100.0110.00414.98
7.3.90.0040.01114.96
7.3.80.0040.00815.08
7.3.70.0080.00814.84
7.3.60.0040.00814.88
7.3.50.0060.00814.88
7.3.40.0100.00514.93
7.3.30.0060.00814.86
7.3.20.0070.00916.76
7.3.10.0120.00516.83
7.3.00.0070.00816.87
7.2.330.0060.01216.80
7.2.320.0080.01116.74
7.2.310.0110.00716.75
7.2.300.0170.00716.69
7.2.290.0110.00716.71
7.2.240.0120.00315.25
7.2.230.0040.01115.19
7.2.220.0040.01115.34
7.2.210.0070.00315.28
7.2.200.0070.00715.18
7.2.190.0030.01315.15
7.2.180.0080.00715.20
7.2.170.0050.00615.29
7.2.160.0060.00915.14
7.2.150.0050.01116.95
7.2.140.0080.00917.03
7.2.130.0020.01117.11
7.2.120.0050.00816.96
7.2.110.0080.01016.90
7.2.100.0080.00616.99
7.2.90.0060.00717.14
7.2.80.0100.00616.96
7.2.70.0050.01017.12
7.2.60.0090.00817.01
7.2.50.0060.00817.03
7.2.40.0090.00917.04
7.2.30.0100.00717.08
7.2.20.0070.01117.01
7.2.10.0050.00917.01
7.2.00.0070.00816.99
7.1.330.0080.00415.79
7.1.320.0030.01015.70
7.1.310.0000.01616.05
7.1.300.0120.00315.86
7.1.290.0030.00915.95
7.1.280.0090.00915.90
7.1.270.0040.00915.89
7.1.260.0030.01115.93
7.1.250.0090.00316.04

preferences:
32.66 ms | 401 KiB | 5 Q