3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match("/(T|[^{])+/", str_repeat('X', 1023).'{#test}', $matches)); var_dump(preg_match("/(T|[^{])+/", str_repeat('X', 1024).'{#test}', $matches));

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.0120.00316.63
8.3.60.0110.00418.55
8.3.50.0190.00222.04
8.3.40.0030.01418.95
8.3.30.0120.00318.66
8.3.20.0040.00420.34
8.3.10.0040.00420.61
8.3.00.0040.00421.72
8.2.190.0080.00818.18
8.2.180.0140.00716.75
8.2.170.0000.01422.96
8.2.160.0130.00022.15
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.35
8.2.110.0100.00019.31
8.2.100.0080.00517.82
8.2.90.0000.00818.89
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0050.00317.68
8.2.50.0030.00618.10
8.2.40.0070.00020.57
8.2.30.0020.00519.42
8.2.20.0040.00417.60
8.2.10.0040.00418.02
8.2.00.0040.00417.84
8.1.280.0070.00725.92
8.1.270.0150.00322.20
8.1.260.0060.01226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0080.00317.64
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0100.00017.25
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0040.00418.83
8.1.160.0040.00420.75
8.1.150.0080.00020.68
8.1.140.0080.00019.57
8.1.130.0080.00017.60
8.1.120.0030.00317.56
8.1.110.0050.00317.58
8.1.100.0000.00717.50
8.1.90.0000.00717.51
8.1.80.0040.00417.45
8.1.70.0000.00717.46
8.1.60.0000.00717.73
8.1.50.0040.00417.60
8.1.40.0040.00417.63
8.1.30.0040.00417.70
8.1.20.0070.00017.66
8.1.10.0050.00317.60
8.1.00.0080.00017.44
8.0.300.0000.00818.77
8.0.290.0080.00016.75
8.0.280.0030.00318.41
8.0.270.0030.00317.15
8.0.260.0000.00717.23
8.0.250.0000.00717.05
8.0.240.0030.00317.05
8.0.230.0050.00317.03
8.0.220.0030.00316.96
8.0.210.0000.00816.96
8.0.200.0060.00316.95
8.0.190.0000.00817.00
8.0.180.0040.00816.90
8.0.170.0040.00416.84
8.0.160.0070.00017.06
8.0.150.0040.00416.82
8.0.140.0050.00316.89
8.0.130.0000.00613.41
8.0.120.0060.00316.82
8.0.110.0040.00416.98
8.0.100.0000.00716.96
8.0.90.0070.00017.03
8.0.80.0060.00916.98
8.0.70.0000.00717.02
8.0.60.0030.00516.93
8.0.50.0050.00316.96
8.0.30.0080.00917.14
8.0.20.0070.01117.40
8.0.10.0040.00417.09
8.0.00.0130.00816.89
7.4.330.0000.00516.71
7.4.320.0000.00616.71
7.4.300.0000.00716.51
7.4.290.0000.00716.69
7.4.280.0000.00716.60
7.4.270.0070.00016.54
7.4.260.0040.00416.54
7.4.250.0050.00316.71
7.4.240.0030.00516.62
7.4.230.0030.00316.78
7.4.220.0030.01416.68
7.4.210.0030.01316.64
7.4.200.0070.00016.78
7.4.160.0090.00616.45
7.4.150.0060.01217.40
7.4.140.0100.00917.86
7.4.130.0100.00716.75
7.4.120.0100.00716.66
7.4.110.0080.00816.63
7.4.100.0090.00916.55
7.4.90.0130.00416.64
7.4.80.0140.00519.39
7.4.70.0000.01616.73
7.4.60.0090.01216.68
7.4.50.0090.00316.54
7.4.40.0140.00716.60
7.4.30.0100.00716.63
7.4.00.0000.01415.09
7.3.330.0000.00713.11
7.3.320.0000.00513.20
7.3.310.0070.00016.34
7.3.300.0000.00616.21
7.3.290.0070.00916.40
7.3.280.0110.00716.36
7.3.270.0070.01117.40
7.3.260.0110.00716.56
7.3.250.0110.00816.47
7.3.240.0080.00816.49
7.3.230.0110.01116.61
7.3.210.0040.01416.43
7.3.200.0070.01016.82
7.3.190.0130.00416.27
7.3.180.0160.00616.68
7.3.170.0130.00316.38
7.3.160.0060.00916.70
7.2.330.0100.00716.66
7.2.320.0090.00916.67
7.2.310.0080.01516.38
7.2.300.0100.00716.71
7.2.290.0060.01516.55
7.2.60.0030.01417.16
7.2.00.0000.01519.73
7.1.200.0120.00016.00
7.1.100.0150.00318.04
7.1.70.0030.00617.29
7.1.60.0000.02619.19
7.1.50.0090.00416.98
7.1.00.0070.07322.62
7.0.200.0250.00614.54
7.0.60.0170.08021.77
7.0.50.0100.04017.84
7.0.40.0030.07020.31
7.0.30.0330.07020.04
7.0.20.0300.06020.37
7.0.10.0070.07720.13
7.0.00.0130.08320.24
5.6.280.0070.03021.95
5.6.210.0030.06721.43
5.6.200.0000.04319.15
5.6.190.0100.04721.43
5.6.180.0400.04721.55
5.6.170.0270.05721.52
5.6.160.0200.06321.48
5.6.150.0030.07019.18
5.6.140.0170.07019.19
5.6.130.0100.07719.07
5.6.120.0070.08322.00
5.6.110.0000.04721.85
5.6.100.0070.08322.07
5.6.90.0100.04321.95
5.6.80.0100.06321.35
5.5.350.0300.05021.33
5.5.340.0030.04318.89
5.5.330.0070.05021.20
5.5.320.0570.05321.20
5.5.310.0300.04721.28
5.5.300.0100.06319.01
5.5.290.0070.06018.88
5.5.280.0070.07721.84
5.5.270.0100.08021.61
5.5.260.0100.07321.73
5.5.250.0030.08021.66
5.5.240.0100.07321.11

preferences:
59.83 ms | 401 KiB | 5 Q