3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOT <p><b>There are currently five entries in the London Borough of Barking &amp; Dagenham (LBBD):</b></p> <p>My string 1<br> My another string<br> And this is also my string<br></p> <p><i>Some text over here</i></p> EOT; preg_match_all("/(<p>)?(.+))<br>/", $html, $matches); print_r($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.40.0150.00018.77
8.3.30.0080.00618.96
8.3.20.0030.00520.28
8.3.10.0040.00423.71
8.3.00.0050.00319.38
8.2.170.0100.00722.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00222.26
8.2.110.0060.00322.27
8.2.100.0090.00317.84
8.2.90.0060.00319.17
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0060.00317.91
8.2.50.0060.00318.07
8.2.40.0000.00819.82
8.2.30.0030.00519.85
8.2.20.0000.00817.76
8.2.10.0000.00717.89
8.2.00.0040.00717.62
8.1.270.0040.00423.91
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00323.92
8.1.230.0060.00619.09
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0000.00817.51
8.1.180.0040.00718.10
8.1.170.0000.00918.57
8.1.160.0040.00421.96
8.1.150.0000.00718.58
8.1.140.0000.00717.45
8.1.130.0080.00017.71
8.1.120.0040.00417.43
8.1.110.0000.00817.39
8.1.100.0040.00417.46
8.1.90.0000.00717.43
8.1.80.0050.00217.31
8.1.70.0070.00017.31
8.1.60.0040.00417.43
8.1.50.0050.00317.48
8.1.40.0060.00317.38
8.1.30.0000.00717.55
8.1.20.0040.00417.50
8.1.10.0040.00417.46
8.1.00.0030.00517.46
8.0.300.0040.00419.21
8.0.290.0040.00417.05
8.0.280.0030.00318.45
8.0.270.0040.00417.21
8.0.260.0030.00317.19
8.0.250.0000.00717.00
8.0.240.0030.00616.93
8.0.230.0000.00716.98
8.0.220.0030.00316.95
8.0.210.0000.00716.78
8.0.200.0030.00316.95
8.0.190.0040.00416.93
8.0.180.0000.00716.93
8.0.170.0000.00817.00
8.0.160.0000.00816.90
8.0.150.0040.00416.84
8.0.140.0040.00416.86
8.0.130.0030.00313.33
8.0.120.0000.00816.89
8.0.110.0040.00416.86
8.0.100.0040.00316.71
8.0.90.0050.00216.89
8.0.80.0130.00316.85
8.0.70.0000.00716.91
8.0.60.0040.00416.81
8.0.50.0040.00416.75
8.0.30.0060.01217.07
8.0.20.0120.00817.40
8.0.10.0030.00516.90
8.0.00.0160.00616.79
7.4.330.0000.00615.00
7.4.320.0030.00316.60
7.4.300.0030.00316.45
7.4.290.0070.00016.47
7.4.280.0040.00416.35
7.4.270.0000.00716.54
7.4.260.0000.00716.39
7.4.250.0000.00716.61
7.4.240.0020.00516.65
7.4.230.0030.00316.30
7.4.220.0040.01416.63
7.4.210.0060.01116.65
7.4.200.0000.00816.70
7.4.190.0070.00016.72
7.4.160.0090.01216.51
7.4.150.0110.00817.40
7.4.140.0100.00817.86
7.4.130.0110.00616.63
7.4.120.0120.00616.60
7.4.110.0160.00416.53
7.4.100.0100.01316.63
7.4.90.0150.00316.50
7.4.80.0120.00919.39
7.4.70.0120.00316.46
7.4.60.0060.00916.32
7.4.50.0000.00816.61
7.4.40.0070.01016.43
7.4.30.0030.01316.46
7.4.00.0100.00314.90
7.3.330.0030.00312.98
7.3.320.0030.00313.15
7.3.310.0040.00416.34
7.3.300.0060.00016.27
7.3.290.0090.00616.27
7.3.280.0090.00916.24
7.3.270.0170.00617.40
7.3.260.0180.00016.16
7.3.250.0120.00716.16
7.3.240.0110.00616.41
7.3.230.0040.01816.39
7.3.210.0070.01016.23
7.3.200.0070.01019.39
7.3.190.0090.00916.23
7.3.180.0110.00416.47
7.3.170.0120.00416.29
7.3.160.0090.00616.14
7.3.120.0100.00614.46
7.3.10.0150.00316.66
7.3.00.0110.00416.57
7.2.330.0040.01316.28
7.2.320.0060.00916.56
7.2.310.0070.01116.47
7.2.300.0090.00916.50
7.2.290.0100.01316.63
7.2.130.0110.01116.82
7.2.120.0160.00616.80
7.2.110.0000.01616.75
7.2.100.0090.00616.82
7.2.90.0060.00916.92
7.2.80.0000.00916.52
7.2.70.0060.01016.68
7.2.60.0070.01116.83
7.2.50.0000.01116.70
7.2.40.0090.00616.96
7.2.30.0090.00416.96
7.2.20.0000.01516.82
7.2.10.0110.00416.83
7.2.00.0100.00718.06
7.1.250.0080.00815.87
7.1.100.0060.00618.08
7.1.70.0100.00316.84
7.1.60.0090.00619.46
7.1.50.0100.01016.57
7.1.00.0070.07022.30
7.0.200.0350.00714.74
7.0.140.0070.07022.18
7.0.60.0130.07319.91
7.0.50.0130.03317.66
7.0.40.0100.03720.04
7.0.30.0530.06720.21
7.0.20.0200.06020.16
7.0.10.0030.04720.18
7.0.00.0030.06020.20
5.6.210.0170.06320.55
5.6.200.0130.07018.22
5.6.190.0100.06320.67
5.6.180.0170.08020.60
5.6.170.0270.08320.46
5.6.160.0100.03720.38
5.6.150.0070.04318.09
5.6.140.0070.05718.18
5.6.130.0000.07718.20
5.6.120.0100.08021.03
5.6.110.0070.04320.98
5.6.100.0030.08721.04
5.6.90.0030.06321.13
5.6.80.0130.04320.50
5.6.70.4400.03720.39
5.5.350.0000.05020.40
5.5.340.0070.03718.02
5.5.330.0100.03720.47
5.5.320.0270.07020.24
5.5.310.0230.04320.29
5.5.300.0070.08017.92
5.5.290.0030.08017.89
5.5.280.0030.04320.77
5.5.270.0030.04020.92
5.5.260.0200.06020.79
5.5.250.0070.08020.68
5.5.240.0270.06720.04
5.4.450.0800.06719.34
5.4.440.0770.05719.24
5.4.430.0730.05719.49
5.4.420.0800.04319.58
5.4.410.0630.06719.40
5.4.400.0700.04019.05
5.4.390.0700.06019.19
5.4.380.0300.05718.70
5.4.370.0400.04718.56
5.4.360.0230.05018.78
5.4.350.0230.05718.46
5.4.340.0300.04318.52
5.4.320.0030.03812.45
5.4.310.0090.04012.45
5.4.300.0030.04112.45
5.4.290.0080.04512.44
5.4.280.0080.04112.34
5.4.270.0040.04512.34
5.4.260.0060.03912.34
5.4.250.0130.05912.34
5.4.240.0090.05412.34
5.4.230.0080.04312.33
5.4.220.0040.04012.33
5.4.210.0120.04312.33
5.4.200.0130.04612.33
5.4.190.0130.05012.32
5.4.180.0080.05412.33
5.4.170.0100.04812.34
5.4.160.0090.07512.34
5.4.150.0170.04812.33
5.4.140.0090.05212.02
5.4.130.0210.06112.00
5.4.120.0130.04711.96
5.4.110.0110.07111.95
5.4.100.0050.06111.96
5.4.90.0110.05311.96
5.4.80.0110.05411.96
5.4.70.0060.03511.96
5.4.60.0050.03811.95
5.4.50.0080.03511.95
5.4.40.0100.03611.94
5.4.30.0060.03611.94
5.4.20.0110.03211.93
5.4.10.0060.03511.94
5.4.00.0100.04911.43
5.3.290.0080.03712.80
5.3.280.0060.05312.70
5.3.270.0050.05512.72
5.3.260.0080.04212.72
5.3.250.0070.03612.72
5.3.240.0060.03712.71
5.3.230.0090.03812.71
5.3.220.0060.04012.68
5.3.210.0050.04012.68
5.3.200.0110.04712.68
5.3.190.0070.04312.68
5.3.180.0080.04912.67
5.3.170.0080.05712.67
5.3.160.0080.04712.67
5.3.150.0100.04612.67
5.3.140.0060.04012.66
5.3.130.0090.05312.66
5.3.120.0130.05412.66
5.3.110.0120.05412.66
5.3.100.0090.03612.12
5.3.90.0060.03912.08
5.3.80.0110.05612.08
5.3.70.0160.04112.07
5.3.60.0080.05112.06
5.3.50.0100.05612.00
5.3.40.0120.05512.00
5.3.30.0100.05111.95
5.3.20.0100.04611.73
5.3.10.0120.04011.70
5.3.00.0090.04911.68
5.2.170.0120.0319.19
5.2.160.0060.0449.20
5.2.150.0080.0319.19
5.2.140.0050.0339.18
5.2.130.0050.0329.15
5.2.120.0080.0279.14
5.2.110.0060.0319.16
5.2.100.0100.0289.15
5.2.90.0050.0439.15
5.2.80.0070.0389.15
5.2.70.0050.0429.14
5.2.60.0060.0329.10
5.2.50.0090.0389.07
5.2.40.0070.0309.04
5.2.30.0070.0359.02
5.2.20.0040.0299.03
5.2.10.0090.0288.95
5.2.00.0060.0378.80
5.1.60.0050.0268.09
5.1.50.0030.0298.09
5.1.40.0090.0248.07
5.1.30.0060.0288.42
5.1.20.0060.0458.44
5.1.10.0030.0388.17
5.1.00.0080.0318.16
5.0.50.0060.0246.64
5.0.40.0070.0186.50
5.0.30.0040.0316.32
5.0.20.0050.0226.29
5.0.10.0070.0296.26
5.0.00.0070.0366.26
4.4.90.0070.0204.78
4.4.80.0040.0164.76
4.4.70.0080.0234.75
4.4.60.0060.0224.75
4.4.50.0070.0284.77
4.4.40.0030.0264.70
4.4.30.0040.0154.76
4.4.20.0030.0234.84
4.4.10.0030.0214.84
4.4.00.0040.0344.76
4.3.110.0110.0364.67
4.3.100.0050.0294.66
4.3.90.0090.0214.63
4.3.80.0040.0334.59
4.3.70.0030.0234.63
4.3.60.0060.0214.63
4.3.50.0060.0184.63
4.3.40.0070.0304.54
4.3.30.0060.0223.32
4.3.20.0020.0233.29
4.3.10.0040.0203.23
4.3.00.0130.01716.03

preferences:
42.25 ms | 400 KiB | 5 Q