3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = ';?[a-z\d+#.-]+'; // Borrowed from @Hamza. $tags =<<<TAGS gggd hfhfghg;hfhdfh fgjfgjgf;hfhdfh;hfhdfh fgjgfj;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh TAGS; if (preg_match('/'.$pattern.'/', $tags)) { var_dump(substr_count($tags, ';')); }

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.0040.02218.37
8.3.50.0140.00421.21
8.3.40.0060.00918.92
8.3.30.0100.00320.17
8.3.20.0040.00420.30
8.3.10.0080.00021.96
8.3.00.0040.00422.39
8.2.180.0090.00916.74
8.2.170.0180.00022.96
8.2.160.0070.00719.46
8.2.150.0060.00324.18
8.2.140.0030.01624.66
8.2.130.0070.01026.16
8.2.120.0030.00619.54
8.2.110.0000.00921.30
8.2.100.0080.00417.91
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0000.00818.04
8.2.50.0030.00618.10
8.2.40.0040.00419.88
8.2.30.0040.00417.96
8.2.20.0040.00417.80
8.2.10.0040.00417.91
8.2.00.0030.00617.89
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.84
8.1.230.0090.00317.76
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0030.00518.74
8.1.160.0000.00722.04
8.1.150.0030.00518.74
8.1.140.0000.00717.61
8.1.130.0000.00717.77
8.1.120.0000.00717.54
8.1.110.0000.00717.56
8.1.100.0040.00417.68
8.1.90.0040.00417.63
8.1.80.0050.00317.52
8.1.70.0000.00717.52
8.1.60.0000.00917.72
8.1.50.0040.00417.64
8.1.40.0000.00817.70
8.1.30.0040.00417.72
8.1.20.0000.00817.80
8.1.10.0050.00217.68
8.1.00.0040.00417.66
8.0.300.0090.00018.77
8.0.290.0040.00417.00
8.0.280.0070.00018.47
8.0.270.0060.00217.31
8.0.260.0030.00316.89
8.0.250.0070.00017.05
8.0.240.0000.00717.16
8.0.230.0070.00017.18
8.0.220.0030.00317.04
8.0.210.0020.00516.99
8.0.200.0000.00617.22
8.0.190.0050.00517.18
8.0.180.0040.00417.02
8.0.170.0070.00017.17
8.0.160.0000.00817.23
8.0.150.0030.00317.09
8.0.140.0040.00417.03
8.0.130.0030.00313.46
8.0.120.0000.00817.09
8.0.110.0040.00417.13
8.0.100.0030.00316.94
8.0.90.0070.00016.97
8.0.80.0060.00917.09
8.0.70.0030.00516.92
8.0.60.0000.00817.01
8.0.50.0000.00816.87
8.0.30.0080.01017.17
8.0.20.0100.00817.40
8.0.10.0040.00417.17
8.0.00.0160.00516.94
7.4.330.0050.00015.11
7.4.320.0000.00616.70
7.4.300.0060.00016.58
7.4.290.0000.00716.66
7.4.280.0000.00716.76
7.4.270.0000.00716.56
7.4.260.0030.00316.68
7.4.250.0030.00416.70
7.4.240.0030.00516.75
7.4.230.0070.00016.73
7.4.220.0000.01816.84
7.4.210.0110.00616.70
7.4.200.0040.00416.76
7.4.190.0050.00316.93
7.4.160.0180.00316.78
7.4.150.0060.01217.40
7.4.140.0100.01117.86
7.4.130.0110.00816.88
7.4.120.0100.00816.70
7.4.110.0030.01416.60
7.4.100.0030.01716.61
7.4.90.0110.00616.66
7.4.80.0120.00919.39
7.4.70.0130.00916.62
7.4.60.0060.01016.66
7.4.50.0040.00416.48
7.4.40.0070.00722.77
7.4.30.0120.00616.80
7.4.00.0070.01015.13
7.3.330.0060.00013.24
7.3.320.0030.00213.36
7.3.310.0000.00716.35
7.3.300.0000.00716.48
7.3.290.0060.00616.54
7.3.280.0090.00816.48
7.3.270.0060.00917.40
7.3.260.0080.01116.52
7.3.250.0110.00616.58
7.3.240.0050.01116.75
7.3.230.0140.00316.43
7.3.210.0090.00916.53
7.3.200.0090.00619.39
7.3.190.0090.00916.68
7.3.180.0080.01216.79
7.3.170.0080.00816.57
7.3.160.0060.01016.41
7.3.120.0070.00715.00
7.2.330.0090.00916.70
7.2.320.0060.01116.69
7.2.310.0130.00416.70
7.2.300.0100.00716.81
7.2.290.0090.00616.75
7.1.200.0040.00415.96
7.1.70.0000.00717.44
7.1.60.0060.01819.29
7.1.50.0040.02217.24
7.1.00.0000.06022.52
7.0.200.0960.00715.07
7.0.140.0000.08022.05
7.0.60.0130.08019.88
7.0.50.0030.08317.79
7.0.40.0070.07320.06
7.0.30.0500.06320.35
7.0.20.0300.06020.21
7.0.10.0400.07320.34
7.0.00.0070.06020.13
5.6.280.0100.06721.12
5.6.210.0070.05020.60
5.6.200.0170.07718.16
5.6.190.0070.08020.45
5.6.180.0270.04720.56
5.6.170.0300.05020.49
5.6.160.0100.08020.54
5.6.150.0070.07718.09
5.6.140.0070.08018.16
5.6.130.0170.04718.09
5.6.120.0070.07021.11
5.6.110.0070.07321.08
5.6.100.0100.04320.96
5.6.90.0030.04020.87
5.6.80.0100.07720.53
5.6.70.0230.07320.32
5.5.350.0470.06320.43
5.5.340.0100.07317.92
5.5.330.0070.04020.27
5.5.320.0330.07720.07
5.5.310.0300.07720.50
5.5.300.0070.07017.91
5.5.290.0070.08018.02
5.5.280.0070.06320.76
5.5.270.0070.06020.86
5.5.260.0070.03720.86
5.5.250.0070.05320.61
5.5.240.0070.06320.18
5.4.450.2170.04719.46
5.4.440.2200.03719.12
5.4.430.0070.05319.09
5.4.420.0000.05319.45
5.4.410.0200.05019.41
5.4.400.2130.04319.09
5.4.390.2030.05719.08
5.4.380.2000.03719.10
5.4.370.0070.03319.06
5.4.360.0000.05019.08
5.4.350.0930.03719.08
5.4.340.1930.04718.78
5.4.320.2030.03719.10
5.4.310.2070.04718.78
5.4.300.1970.04018.93
5.4.290.2070.03718.92
5.4.280.1230.04719.09
5.4.270.0100.06019.09
5.4.260.0100.04719.24
5.4.250.1800.05318.77
5.4.240.2200.04018.88
5.4.230.1900.03719.15
5.4.220.2070.05019.12
5.4.210.2170.04018.77
5.4.200.2170.04019.09
5.4.190.1770.04319.12
5.4.180.1830.04019.12
5.4.170.1830.04019.14
5.4.160.2200.04019.06
5.4.150.0270.07719.04
5.4.140.0230.05316.26
5.4.130.0200.03716.18
5.4.120.0300.03016.16
5.4.110.0130.03716.45
5.4.100.0170.03316.44
5.4.90.0230.06316.43
5.4.80.0130.04716.48
5.4.70.0230.05716.44
5.4.60.0200.05316.36
5.4.50.0130.05316.31
5.4.40.0270.06016.36
5.4.30.0170.03316.49
5.4.20.0170.06316.23
5.4.10.0170.05016.15
5.4.00.0200.03015.74
5.3.290.0200.05714.57
5.3.280.0230.03014.43
5.3.270.0230.07014.69
5.3.260.0130.05714.51
5.3.250.0170.05014.45
5.3.240.0270.02714.43
5.3.230.0200.03314.43
5.3.220.0230.06014.41
5.3.210.0170.05014.40
5.3.200.0230.03714.42
5.3.190.0300.05014.42
5.3.180.0100.04314.39
5.3.170.0270.06714.65
5.3.160.0070.04014.60
5.3.150.0130.04314.51
5.3.140.0200.03314.40
5.3.130.0100.04314.48
5.3.120.0170.03714.59
5.3.110.0170.03714.48
5.3.100.0070.04714.08
5.3.90.0170.03713.85
5.3.80.0200.04713.86
5.3.70.0170.04013.98
5.3.60.0170.04713.82
5.3.50.0130.04313.89
5.3.40.0130.04013.72
5.3.30.0170.04713.85
5.3.20.0200.04713.79
5.3.10.0170.03313.45
5.3.00.0200.03013.48
5.2.170.0130.03010.98
5.2.160.0170.02711.16
5.2.150.0070.04011.18
5.2.140.0230.04711.05
5.2.130.0170.02710.96
5.2.120.0130.02710.94
5.2.110.0230.04311.18
5.2.100.0200.05010.94
5.2.90.0100.04010.99
5.2.80.0170.03010.96
5.2.70.0200.02710.93
5.2.60.0170.03010.89
5.2.50.0170.03310.87
5.2.40.0170.06010.84
5.2.30.0130.03010.82
5.2.20.0130.02711.03
5.2.10.0000.04010.97
5.2.00.0070.02710.62
5.1.60.0070.0309.99
5.1.50.0100.0279.98
5.1.40.0130.02310.15
5.1.30.0130.02310.29
5.1.20.0100.02710.28
5.1.10.0070.05010.09
5.1.00.0130.02310.20
5.0.50.0030.0238.57
5.0.40.0100.0178.30
5.0.30.0100.0278.39
5.0.20.0070.0208.43
5.0.10.0030.0208.26
5.0.00.0100.0278.10
4.4.90.0100.0137.92
4.4.80.0070.0137.92
4.4.70.0030.0237.92
4.4.60.0130.0137.92
4.4.50.0030.0237.92
4.4.40.0100.0277.92
4.4.30.0030.0207.92
4.4.20.0030.0177.92
4.4.10.0070.0137.92
4.4.00.0130.0507.92
4.3.110.0070.0337.92
4.3.100.0070.0177.92
4.3.90.0070.0207.92
4.3.80.0070.0277.92
4.3.70.0030.0377.92
4.3.60.0100.0207.92
4.3.50.0030.0207.92
4.3.40.0030.0277.92
4.3.30.0030.0207.92
4.3.20.0030.0337.92
4.3.10.0030.0377.92
4.3.00.0030.0137.92

preferences:
42.81 ms | 401 KiB | 5 Q