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;hf!!@hdfh;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.00418.68
8.3.50.0260.00221.02
8.3.40.0070.01318.77
8.3.30.0040.01120.17
8.3.20.0080.00020.31
8.3.10.0030.00621.95
8.3.00.0070.00022.44
8.2.180.0090.00618.29
8.2.170.0080.00622.96
8.2.160.0070.01020.57
8.2.150.0050.00324.18
8.2.140.0150.00424.66
8.2.130.0130.00626.16
8.2.120.0040.00419.52
8.2.110.0060.00319.29
8.2.100.0080.00317.63
8.2.90.0080.00019.17
8.2.80.0050.00317.97
8.2.70.0040.00417.49
8.2.60.0000.00817.68
8.2.50.0050.00318.07
8.2.40.0030.00519.91
8.2.30.0000.00717.98
8.2.20.0080.00017.73
8.2.10.0050.00417.64
8.2.00.0070.00317.63
8.1.280.0110.01125.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.15
8.1.230.0120.00017.78
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.36
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00918.59
8.1.160.0000.00721.98
8.1.150.0040.00418.56
8.1.140.0040.00417.32
8.1.130.0040.00417.40
8.1.120.0030.00417.43
8.1.110.0050.00317.35
8.1.100.0000.00717.43
8.1.90.0000.00717.41
8.1.80.0030.00317.47
8.1.70.0070.00017.37
8.1.60.0060.00317.49
8.1.50.0040.00417.55
8.1.40.0050.00317.48
8.1.30.0050.00217.59
8.1.20.0040.00417.63
8.1.10.0040.00417.53
8.1.00.0030.00517.43
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0080.00017.21
8.0.260.0000.00616.79
8.0.250.0030.00316.88
8.0.240.0030.00616.96
8.0.230.0040.00417.05
8.0.220.0070.00017.04
8.0.210.0040.00416.95
8.0.200.0070.00017.04
8.0.190.0040.00416.98
8.0.180.0050.00216.97
8.0.170.0040.00416.95
8.0.160.0080.00017.01
8.0.150.0000.00816.89
8.0.140.0000.00816.93
8.0.130.0030.00313.43
8.0.120.0040.00416.81
8.0.110.0040.00417.01
8.0.100.0040.00416.84
8.0.90.0040.00417.02
8.0.80.0130.00316.96
8.0.70.0040.00417.03
8.0.60.0040.00416.93
8.0.50.0040.00416.93
8.0.30.0120.01117.13
8.0.20.0110.00717.40
8.0.10.0000.00717.06
8.0.00.0080.00916.80
7.4.330.0000.00615.00
7.4.320.0000.00616.48
7.4.300.0000.00616.61
7.4.290.0000.00716.54
7.4.280.0070.00016.39
7.4.270.0070.00016.44
7.4.260.0040.00416.36
7.4.250.0040.00416.52
7.4.240.0020.00516.63
7.4.230.0040.00416.32
7.4.220.0040.01416.52
7.4.210.0040.01116.61
7.4.200.0040.00416.61
7.4.190.0060.00316.46
7.4.160.0160.00416.60
7.4.150.0130.00317.40
7.4.140.0090.01117.86
7.4.130.0080.00916.51
7.4.120.0090.00916.51
7.4.110.0150.00316.45
7.4.100.0170.00616.58
7.4.90.0140.00316.62
7.4.80.0100.00719.39
7.4.70.0100.00616.58
7.4.60.0100.00716.49
7.4.50.0030.00516.51
7.4.40.0060.01222.77
7.4.30.0080.00816.67
7.4.00.0040.01414.92
7.3.330.0050.00013.14
7.3.320.0000.00513.06
7.3.310.0030.00616.40
7.3.300.0060.00016.45
7.3.290.0070.00716.41
7.3.280.0090.00616.38
7.3.270.0100.00717.40
7.3.260.0100.00716.32
7.3.250.0070.01216.35
7.3.240.0060.01016.40
7.3.230.0110.00516.39
7.3.210.0100.00716.43
7.3.200.0040.01819.39
7.3.190.0170.00016.64
7.3.180.0070.01416.65
7.3.170.0060.00916.39
7.3.160.0040.01216.30
7.3.120.0030.00614.59
7.2.330.0110.00716.48
7.2.320.0120.00616.48
7.2.310.0070.01016.55
7.2.300.0030.01716.48
7.2.290.0060.01016.52
7.1.70.0060.00317.25
7.1.60.0140.01019.29
7.1.50.0100.01417.07
7.1.00.0000.04322.24
7.0.200.0800.00014.94
7.0.140.0000.08022.08
7.0.60.0100.07019.86
7.0.50.0030.07317.88
7.0.40.0130.04020.11
7.0.30.0100.08320.33
7.0.20.0370.06720.00
7.0.10.0230.05720.04
7.0.00.0030.06320.17
5.6.280.0030.07021.05
5.6.210.0070.04720.62
5.6.200.0000.05318.21
5.6.190.0170.07320.41
5.6.180.0270.04320.36
5.6.170.0170.05320.50
5.6.160.0130.07020.49
5.6.150.0070.04718.19
5.6.140.0030.08718.21
5.6.130.0070.03718.16
5.6.120.0030.04021.07
5.6.110.0070.08721.13
5.6.100.0130.07721.10
5.6.90.0000.09320.97
5.6.80.0070.07020.28
5.6.70.0370.06320.36
5.5.350.0230.07720.33
5.5.340.0070.03717.93
5.5.330.0070.07020.37
5.5.320.0200.04720.13
5.5.310.0270.07720.29
5.5.300.0030.04317.97
5.5.290.0070.08717.95
5.5.280.0100.08020.68
5.5.270.0100.03720.79
5.5.260.0130.06720.86
5.5.250.0070.04320.68
5.5.240.0070.08720.22
5.4.450.0530.06719.44
5.4.440.0870.06019.13
5.4.430.0930.06019.30
5.4.420.1030.04719.50
5.4.410.0170.04718.93
5.4.400.2930.06318.53
5.4.390.1500.07018.74
5.4.380.0300.07318.72
5.4.370.0270.05018.65
5.4.360.0230.05018.61
5.4.350.0100.03511.98
5.4.340.0110.03911.97
5.4.320.0070.04112.46
5.4.310.0030.04312.46
5.4.300.0060.03812.46
5.4.290.0050.03812.45
5.4.280.0060.03512.35
5.4.270.0070.04012.35
5.4.260.0040.04012.35
5.4.250.0100.05719.02
5.4.240.0070.05318.71
5.4.230.0130.08018.69
5.4.220.0030.06018.72
5.4.210.0170.07018.93
5.4.200.0030.07718.77
5.4.190.0000.06718.79
5.4.180.0270.03318.64
5.4.170.0100.07018.60
5.4.160.0100.07318.73
5.4.150.0100.07318.71
5.4.140.0130.07016.30
5.4.130.0100.04716.50
5.4.120.0000.06316.50
5.4.110.0100.04716.20
5.4.100.0130.04316.49
5.4.90.0170.04716.49
5.4.80.0130.06316.48
5.4.70.0030.06016.48
5.4.60.0100.04716.47
5.4.50.0100.05316.52
5.4.40.0070.05316.32
5.4.30.0070.05316.38
5.4.20.0070.05016.32
5.4.10.0070.05316.47
5.4.00.0170.05315.71
5.3.290.0080.04212.80
5.3.280.0100.04714.45
5.3.270.0100.07714.62
5.3.260.0070.06314.60
5.3.250.0030.05714.61
5.3.240.0100.05014.75
5.3.230.0030.05714.51
5.3.220.0170.04014.45
5.3.210.0100.05014.34
5.3.200.0130.04714.58
5.3.190.0100.04714.66
5.3.180.0030.06014.45
5.3.170.0100.05714.43
5.3.160.0030.05314.43
5.3.150.0100.07314.33
5.3.140.0100.04314.70
5.3.130.0100.06014.38
5.3.120.0070.08014.60
5.3.110.0100.05014.70
5.3.100.0130.05713.90
5.3.90.0170.06014.16
5.3.80.0070.05314.02
5.3.70.0070.05314.06
5.3.60.0200.03713.92
5.3.50.0100.04714.11
5.3.40.0000.05713.95
5.3.30.0070.05013.77
5.3.20.0030.05713.73
5.3.10.0070.04713.66
5.3.00.0070.05313.68
5.2.170.0030.04311.05
5.2.160.0070.04011.04
5.2.150.0070.04311.16
5.2.140.0100.03711.07
5.2.130.0070.03711.03
5.2.120.0030.04011.02
5.2.110.0070.03711.02
5.2.100.0000.05011.25
5.2.90.0000.04710.99
5.2.80.0000.06011.09
5.2.70.0070.04011.01
5.2.60.0030.04011.16
5.2.50.0100.05011.13
5.2.40.0070.04711.00
5.2.30.0130.05010.89
5.2.20.0030.04010.90
5.2.10.0070.04310.95
5.2.00.0030.04310.89
5.1.60.0030.0439.92
5.1.50.0000.0379.78
5.1.40.0100.04010.18
5.1.30.0030.04310.28
5.1.20.0030.03710.36
5.1.10.0100.03010.23
5.1.00.0000.04010.10
5.0.50.0070.0278.61
5.0.40.0000.0308.51
5.0.30.0000.0478.43
5.0.20.0000.0278.24
5.0.10.0070.0238.37
5.0.00.0030.0408.20
4.4.90.0030.0207.41
4.4.80.0000.0277.41
4.4.70.0100.0177.41
4.4.60.0000.0337.41
4.4.50.0000.0337.41
4.4.40.0030.0477.41
4.4.30.0100.0207.41
4.4.20.0000.0237.41
4.4.10.0000.0237.41
4.4.00.0070.0277.41
4.3.110.0030.0207.41
4.3.100.0070.0177.41
4.3.90.0070.0207.41
4.3.80.0030.0437.41
4.3.70.0070.0177.41
4.3.60.0030.0207.41
4.3.50.0030.0207.41
4.3.40.0030.0307.41
4.3.30.0000.0237.41
4.3.20.0000.0237.41
4.3.10.0030.0207.41
4.3.00.0170.0276.88

preferences:
47.61 ms | 401 KiB | 5 Q