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.0140.00718.28
8.3.50.0070.00721.14
8.3.40.0100.01018.64
8.3.30.0100.00320.34
8.3.20.0040.00420.29
8.3.10.0050.00322.14
8.3.00.0080.00022.51
8.2.180.0150.00016.75
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0060.01326.16
8.2.120.0040.00419.78
8.2.110.0030.00719.27
8.2.100.0040.00817.91
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0050.00318.04
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0000.00717.95
8.2.20.0030.00617.84
8.2.10.0030.00617.75
8.2.00.0030.00619.59
8.1.280.0180.00425.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00321.29
8.1.230.0070.00417.48
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0040.00417.36
8.1.190.0110.00017.35
8.1.180.0080.00018.10
8.1.170.0040.00418.70
8.1.160.0080.00021.95
8.1.150.0040.00418.70
8.1.140.0030.00617.45
8.1.130.0000.00717.82
8.1.120.0030.00317.38
8.1.110.0080.00017.36
8.1.100.0040.00417.46
8.1.90.0030.00317.35
8.1.80.0000.00817.52
8.1.70.0070.00017.46
8.1.60.0000.00917.49
8.1.50.0070.00017.59
8.1.40.0030.00517.56
8.1.30.0080.00017.54
8.1.20.0040.00417.66
8.1.10.0070.00017.49
8.1.00.0040.00417.42
8.0.300.0050.00318.77
8.0.290.0030.00716.75
8.0.280.0070.00018.41
8.0.270.0060.00317.22
8.0.260.0000.00616.93
8.0.250.0030.00317.07
8.0.240.0050.00317.00
8.0.230.0000.00816.98
8.0.220.0030.00316.98
8.0.210.0030.00316.87
8.0.200.0000.00616.93
8.0.190.0000.01117.05
8.0.180.0000.00817.02
8.0.170.0080.00016.97
8.0.160.0070.00016.98
8.0.150.0040.00416.80
8.0.140.0000.00716.93
8.0.130.0000.00513.41
8.0.120.0000.00716.89
8.0.110.0040.00416.86
8.0.100.0080.00016.98
8.0.90.0000.00816.79
8.0.80.0070.01116.87
8.0.70.0040.00416.92
8.0.60.0000.00716.91
8.0.50.0040.00416.73
8.0.30.0070.01117.12
8.0.20.0110.00717.40
8.0.10.0000.00717.01
8.0.00.0130.00516.88
7.4.330.0060.00015.02
7.4.320.0020.00516.52
7.4.300.0000.00616.63
7.4.290.0000.00716.52
7.4.280.0040.00416.63
7.4.270.0000.00716.57
7.4.260.0090.00016.60
7.4.250.0000.00816.52
7.4.240.0040.00416.55
7.4.230.0000.00616.39
7.4.220.0120.01816.48
7.4.210.0040.01116.56
7.4.200.0070.00016.70
7.4.190.0040.00416.63
7.4.160.0150.00016.49
7.4.150.0110.00617.40
7.4.140.0100.01217.86
7.4.130.0140.00316.54
7.4.120.0150.00516.50
7.4.110.0110.01116.45
7.4.100.0080.00816.61
7.4.90.0040.01416.48
7.4.80.0060.01616.53
7.4.70.0060.01216.54
7.4.60.0070.01016.70
7.4.50.0050.00016.42
7.4.40.0000.01222.77
7.4.30.0130.00316.59
7.4.00.0030.01315.06
7.3.330.0000.00513.31
7.3.320.0030.00313.33
7.3.310.0030.00316.29
7.3.300.0070.00016.38
7.3.290.0070.01016.43
7.3.280.0110.00516.41
7.3.270.0090.00617.40
7.3.260.0100.00716.60
7.3.250.0150.00316.49
7.3.240.0120.01216.48
7.3.230.0170.00016.39
7.3.210.0130.00916.59
7.3.200.0000.01719.39
7.3.190.0070.01116.43
7.3.180.0100.01016.58
7.3.170.0100.00616.37
7.3.160.0090.00616.33
7.3.120.0090.00314.91
7.2.330.0120.00616.56
7.2.320.0110.00516.57
7.2.310.0130.00716.67
7.2.300.0070.00716.63
7.2.290.0030.01216.63
7.2.80.0090.00316.33
7.1.200.0030.01015.94
7.1.70.0070.00017.20
7.1.60.0180.00719.29
7.1.50.0100.01317.12
7.1.00.0000.05722.46
7.0.200.0590.00915.01
7.0.140.0070.07022.08
7.0.60.0130.08019.81
7.0.50.0070.06017.81
7.0.40.0070.08720.28
7.0.30.0270.06020.21
7.0.20.0370.07720.04
7.0.10.0270.08720.19
7.0.00.0000.09320.17
5.6.280.0030.07321.12
5.6.210.0070.08320.64
5.6.200.0100.08018.21
5.6.190.0030.05320.60
5.6.180.0300.06320.56
5.6.170.0230.03320.52
5.6.160.0130.06320.71
5.6.150.0000.06018.18
5.6.140.0070.06718.21
5.6.130.0130.03018.09
5.6.120.0030.04321.01
5.6.110.0170.07321.00
5.6.100.0070.08320.88
5.6.90.0130.07721.10
5.6.80.0070.06320.38
5.6.70.0470.05720.49
5.5.350.0270.07720.38
5.5.340.0100.08017.98
5.5.330.0100.08020.27
5.5.320.0170.04020.15
5.5.310.0200.08320.26
5.5.300.0100.05017.99
5.5.290.0000.04717.87
5.5.280.0100.06320.89
5.5.270.0070.07720.86
5.5.260.0230.06720.95
5.5.250.0100.08720.79
5.5.240.0130.07720.24
5.4.450.0530.07319.52
5.4.440.1070.05719.46
5.4.430.1030.05319.54
5.4.420.0970.06319.41
5.4.410.0200.04718.95
5.4.400.0400.05718.69
5.4.390.0330.06718.74
5.4.380.0330.05318.74
5.4.370.0230.04718.64
5.4.360.0200.07318.67
5.4.350.0100.04011.97
5.4.340.0080.03911.97
5.4.320.0080.03512.45
5.4.310.0070.03712.45
5.4.300.0050.04612.46
5.4.290.0060.04212.45
5.4.280.0040.04312.35
5.4.270.0080.03512.35
5.4.260.0080.04012.35
5.4.250.0030.08318.88
5.4.240.0070.05318.87
5.4.230.0070.05318.73
5.4.220.0130.05718.87
5.4.210.0100.06018.79
5.4.200.0070.06718.77
5.4.190.0130.07018.82
5.4.180.0200.04018.71
5.4.170.0170.04318.72
5.4.160.0100.05018.86
5.4.150.0130.06318.90
5.4.140.0070.08016.33
5.4.130.0170.04316.50
5.4.120.0070.04716.31
5.4.110.0100.06016.49
5.4.100.0030.05316.42
5.4.90.0070.07016.28
5.4.80.0100.04716.37
5.4.70.0030.05016.43
5.4.60.0030.05316.27
5.4.50.0000.07716.49
5.4.40.0070.05016.38
5.4.30.0100.04316.47
5.4.20.0130.06716.20
5.4.10.0170.04716.31
5.4.00.0130.04015.90
5.3.290.0070.03912.80
5.3.280.0070.05014.51
5.3.270.0100.05314.61
5.3.260.0270.05014.62
5.3.250.0000.05714.70
5.3.240.0000.05714.62
5.3.230.0230.05714.44
5.3.220.0100.04314.57
5.3.210.0030.05714.66
5.3.200.0170.04714.57
5.3.190.0100.05014.59
5.3.180.0070.05014.42
5.3.170.0170.04014.48
5.3.160.0130.05314.57
5.3.150.0030.05314.59
5.3.140.0030.05314.44
5.3.130.0100.04714.43
5.3.120.0100.05014.55
5.3.110.0070.05014.55
5.3.100.0030.05014.04
5.3.90.0030.05013.89
5.3.80.0100.04714.06
5.3.70.0100.04313.71
5.3.60.0030.07013.85
5.3.50.0070.07014.09
5.3.40.0130.04713.96
5.3.30.0070.06013.92
5.3.20.0130.04313.39
5.3.10.0000.07313.42
5.3.00.0100.04313.52
5.2.170.0070.04010.90
5.2.160.0000.04711.16
5.2.150.0030.04311.16
5.2.140.0000.04711.15
5.2.130.0070.04011.01
5.2.120.0070.03710.98
5.2.110.0070.05311.01
5.2.100.0300.03710.93
5.2.90.0100.04711.01
5.2.80.0100.03711.11
5.2.70.0030.04311.18
5.2.60.0130.06310.81
5.2.50.0130.05710.93
5.2.40.0070.03710.93
5.2.30.0100.03710.99
5.2.20.0030.05010.86
5.2.10.0070.04010.95
5.2.00.0000.04310.57
5.1.60.0100.0279.89
5.1.50.0070.03010.07
5.1.40.0070.0339.76
5.1.30.0130.02710.52
5.1.20.0200.03710.44
5.1.10.0130.04010.02
5.1.00.0100.0339.99
5.0.50.0100.0208.41
5.0.40.0030.0308.31
5.0.30.0000.0438.43
5.0.20.0070.0238.29
5.0.10.0000.0438.33
5.0.00.0030.0438.16
4.4.90.0070.0277.43
4.4.80.0070.0307.43
4.4.70.0000.0237.43
4.4.60.0000.0277.43
4.4.50.0030.0207.43
4.4.40.0000.0377.43
4.4.30.0000.0237.43
4.4.20.0030.0237.43
4.4.10.0070.0277.43
4.4.00.0030.0407.43
4.3.110.0130.0207.43
4.3.100.0030.0307.43
4.3.90.0070.0177.43
4.3.80.0030.0337.43
4.3.70.0000.0237.43
4.3.60.0070.0177.43
4.3.50.0130.0107.43
4.3.40.0070.0277.43
4.3.30.0030.0237.43
4.3.20.0000.0337.43
4.3.10.0100.0207.43
4.3.00.0370.0236.88

preferences:
42.16 ms | 401 KiB | 5 Q