3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = ['symbol', 'letter', 'number', 'space']; $tests = ['A', 'z', '+', '0', 'ǻ', 'Ͱ', ' ', '₉']; foreach ($tests as $test) { $index = preg_match('~(\pL)|(\pN)|(\pZ)~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.5.00.0110.00920.37
8.4.150.0020.00114.05
8.4.140.0130.00817.89
8.4.130.0150.00518.05
8.4.120.0040.00620.74
8.4.110.0100.01022.50
8.4.100.0120.00918.07
8.4.90.0060.00518.73
8.4.80.0050.00419.95
8.4.70.0130.00717.82
8.4.60.0120.01018.97
8.4.50.0120.00818.02
8.4.40.0100.01017.99
8.4.30.0030.01620.75
8.4.20.0120.00919.68
8.4.10.0130.00619.60
8.3.280.0120.01018.52
8.3.270.0130.00717.05
8.3.260.0110.00816.57
8.3.250.0080.00818.95
8.3.240.0140.00616.55
8.3.230.0050.00416.73
8.3.220.0100.00817.31
8.3.210.0130.00816.72
8.3.200.0060.00316.73
8.3.190.0100.00918.96
8.3.180.0100.00518.79
8.3.170.0160.00318.82
8.3.160.0110.00718.49
8.3.150.0090.00920.64
8.3.140.0060.00316.59
8.3.130.0090.00016.87
8.3.120.0130.00620.55
8.3.110.0090.00020.94
8.3.100.0030.00616.90
8.3.90.0040.00426.77
8.3.80.0090.00016.75
8.3.70.0080.01118.68
8.3.60.0100.01018.61
8.3.50.0100.00724.59
8.3.40.0040.01121.90
8.3.30.0080.00819.01
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00720.60
8.2.280.0090.01118.71
8.2.270.0140.00317.61
8.2.260.0040.00418.48
8.2.250.0090.00616.62
8.2.240.0090.00919.00
8.2.230.0060.00322.58
8.2.220.0030.00524.06
8.2.210.0110.00726.77
8.2.200.0070.00316.75
8.2.190.0040.01118.67
8.2.180.0150.00725.92
8.2.170.0060.00919.21
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00820.01
8.2.110.0040.00420.47
8.2.100.0120.00018.09
8.2.90.0040.00417.86
8.2.80.0030.00519.03
8.2.70.0080.00017.63
8.2.60.0060.00318.05
8.2.50.0030.00618.07
8.2.40.0030.00618.16
8.2.30.0000.00718.18
8.2.20.0040.00418.21
8.2.10.0040.00419.38
8.2.00.0040.00419.27
8.1.330.0120.00722.19
8.1.320.0110.00923.73
8.1.310.0000.00816.93
8.1.300.0040.00418.23
8.1.290.0060.00330.84
8.1.280.0030.01225.92
8.1.270.0030.00523.75
8.1.260.0100.00626.35
8.1.250.0080.00028.09
8.1.240.0030.00623.85
8.1.230.0040.00823.89
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0090.00017.48
8.1.190.0000.00817.48
8.1.180.0050.00518.10
8.1.170.0030.00618.63
8.1.160.0060.00318.98
8.1.150.0000.00719.01
8.1.140.0040.00420.76
8.1.130.0070.00019.45
8.1.120.0000.00817.59
8.1.110.0050.00317.49
8.1.100.0000.00817.60
8.1.90.0090.00017.51
8.1.80.0000.00817.65
8.1.70.0000.00717.63
8.1.60.0040.00417.70
8.1.50.0040.00417.56
8.1.40.0030.00517.57
8.1.30.0000.00717.78
8.1.20.0000.00817.76
8.1.10.0040.00417.71
8.1.00.0070.00317.68
8.0.300.0030.00619.02
8.0.290.0000.00717.00
8.0.280.0030.00318.38
8.0.270.0040.00418.27
8.0.260.0070.00016.99
8.0.250.0020.00517.15
8.0.240.0070.00017.19
8.0.230.0000.00817.23
8.0.220.0040.00417.04
8.0.210.0000.00717.13
8.0.200.0040.00417.19
8.0.190.0000.00817.29
8.0.180.0000.00817.25
8.0.170.0000.00817.11
8.0.160.0040.00417.23
8.0.150.0040.00417.18
8.0.140.0080.00017.03
8.0.130.0000.00513.55
8.0.120.0030.00617.04
8.0.110.0000.00717.05
8.0.100.0070.00017.03
8.0.90.0070.00017.23
8.0.80.0080.00717.15
8.0.70.0050.00317.05
8.0.60.0040.00417.02
8.0.50.0080.00017.16
8.0.30.0030.01517.19
8.0.20.0170.00317.38
8.0.10.0040.00417.25
8.0.00.0110.00716.86
7.4.330.0020.00215.55
7.4.320.0080.00016.87
7.4.300.0030.00316.85
7.4.290.0040.00416.81
7.4.280.0060.00316.91
7.4.270.0000.00716.76
7.4.260.0030.00313.56
7.4.250.0000.00816.85
7.4.240.0050.00316.78
7.4.230.0000.00716.69
7.4.220.0020.00516.83
7.4.210.0070.01116.81
7.4.200.0000.00816.71
7.4.130.0060.01416.65
7.4.120.0060.01416.78
7.4.110.0090.01216.68
7.4.100.0070.01016.66
7.4.90.0100.00916.61
7.4.80.0120.00616.63
7.4.70.0120.00616.76
7.4.60.0140.00316.65
7.4.50.0170.00716.67
7.4.40.0150.00416.60
7.4.30.0120.00616.86
7.4.20.0070.01116.71
7.4.10.0110.00716.68
7.4.00.0120.01216.97
7.3.330.0000.00716.52
7.3.320.0000.00613.31
7.3.310.0060.00316.44
7.3.300.0000.00716.48
7.3.290.0050.01216.45
7.3.260.0120.01116.57
7.3.240.0120.00616.55
7.3.230.0090.00916.70
7.3.220.0060.01016.56
7.3.210.0200.00016.64
7.3.200.0060.01016.53
7.3.190.0100.00716.56
7.3.180.0120.00616.67
7.3.170.0120.00616.53
7.3.160.0070.01116.45
7.3.150.0030.01516.61
7.3.140.0150.00916.73
7.3.130.0120.00616.49
7.3.120.0150.00916.48
7.3.110.0170.00716.82
7.3.100.0030.01316.38
7.3.90.0120.01216.66
7.3.80.0150.00916.65
7.3.70.0120.00816.55
7.3.60.0090.01516.65
7.3.50.0030.01616.73
7.3.40.0060.01616.62
7.3.30.0160.01016.43
7.3.20.0120.00816.57
7.3.10.0140.01016.52
7.3.00.0150.00416.63
7.2.340.0030.01516.67
7.2.330.0140.00716.71
7.2.320.0150.00716.54
7.2.310.0130.01016.75
7.2.300.0150.00316.71
7.2.290.0100.00816.80
7.2.280.0030.01616.70
7.2.270.0060.01316.68
7.2.260.0040.01416.86
7.2.250.0170.00716.90
7.2.240.0170.00716.82
7.2.230.0100.01016.77
7.2.220.0180.00416.73
7.2.210.0070.01616.70
7.2.200.0150.00616.76
7.2.190.0160.00716.67
7.2.180.0120.00616.49
7.2.170.0120.00916.55
7.2.160.0120.00916.73
7.2.150.0090.01216.71
7.2.140.0040.02116.71
7.2.130.0120.00816.80
7.2.120.0170.00316.74
7.2.110.0090.01216.63
7.2.100.0120.00616.70
7.2.90.0080.01116.63
7.2.80.0080.01116.86
7.2.70.0120.01216.80
7.2.60.0160.00616.55
7.2.50.0100.01016.75
7.2.40.0030.01516.74
7.2.30.0130.01316.76
7.2.20.0130.00616.70
7.2.10.0150.00916.79
7.2.00.0090.01516.74

preferences:
37.42 ms | 403 KiB | 5 Q