3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "&lt;p>This is a good text, but it's very tedious. &lt;/p>"; $str = preg_replace("/(?<=\.)\s*&lt;\/p>/", "$1.&lt;\/p>", $str); echo $str;

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.0090.00918.43
8.3.50.0120.00421.15
8.3.40.0090.00918.79
8.3.30.0110.00418.96
8.3.20.0040.00418.77
8.3.10.0040.00421.09
8.3.00.0000.00819.66
8.2.180.0140.00316.75
8.2.170.0160.00322.96
8.2.160.0060.00920.38
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.31
8.2.110.0040.00420.52
8.2.100.0090.00317.97
8.2.90.0000.00819.22
8.2.80.0040.00419.21
8.2.70.0120.00017.63
8.2.60.0000.00818.03
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0030.00319.52
8.2.20.0070.00017.79
8.2.10.0000.00818.00
8.2.00.0060.00317.77
8.1.280.0080.00825.92
8.1.270.0070.00023.99
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.67
8.1.230.0090.00320.89
8.1.220.0000.00818.77
8.1.210.0000.00718.88
8.1.200.0030.00617.35
8.1.190.0040.00417.41
8.1.180.0090.00318.10
8.1.170.0030.00618.77
8.1.160.0030.00518.79
8.1.150.0000.00918.73
8.1.140.0040.00417.41
8.1.130.0030.00317.91
8.1.120.0030.00317.54
8.1.110.0000.00717.55
8.1.100.0050.00217.54
8.1.90.0040.00417.47
8.1.80.0050.00217.58
8.1.70.0000.00717.43
8.1.60.0030.00517.66
8.1.50.0050.00217.51
8.1.40.0000.00817.56
8.1.30.0070.00017.77
8.1.20.0000.00817.79
8.1.10.0050.00217.70
8.1.00.0030.00617.57
8.0.300.0040.00419.94
8.0.290.0030.00517.18
8.0.280.0030.00318.39
8.0.270.0080.00017.19
8.0.260.0000.00616.95
8.0.250.0060.00317.14
8.0.240.0050.00317.08
8.0.230.0000.00717.03
8.0.220.0030.00316.91
8.0.210.0000.00716.96
8.0.200.0000.00716.95
8.0.190.0060.00317.04
8.0.180.0040.00416.99
8.0.170.0030.00416.98
8.0.160.0080.00016.82
8.0.150.0040.00416.81
8.0.140.0030.00316.84
8.0.130.0030.00313.36
8.0.120.0050.00316.89
8.0.110.0050.00316.80
8.0.100.0030.00316.87
8.0.90.0040.00416.97
8.0.80.0040.01416.92
8.0.70.0050.00217.02
8.0.60.0040.00416.98
8.0.50.0050.00316.92
8.0.30.0160.00617.21
8.0.20.0070.01217.40
8.0.10.0040.00417.11
8.0.00.0100.01016.94
7.4.330.0020.00216.84
7.4.320.0030.00316.80
7.4.300.0030.00316.80
7.4.290.0040.00416.67
7.4.280.0030.00316.76
7.4.270.0030.00316.68
7.4.260.0030.00313.43
7.4.250.0040.00416.73
7.4.240.0050.00216.59
7.4.230.0000.00716.47
7.4.220.0040.01516.69
7.4.210.0060.01016.71
7.4.200.0000.00716.55
7.4.190.0030.00316.80
7.4.160.0130.00616.64
7.4.150.0120.00617.40
7.4.140.0110.00617.86
7.4.130.0080.01016.51
7.4.120.0100.00716.69
7.4.110.0100.01016.53
7.4.100.0000.02016.46
7.4.90.0070.01616.77
7.4.80.0060.01619.39
7.4.70.0110.00816.43
7.4.60.0090.00616.67
7.4.50.0040.00416.49
7.4.40.0110.00422.77
7.4.30.0120.01216.65
7.4.00.0180.00015.23
7.3.330.0030.00313.20
7.3.320.0050.00013.07
7.3.310.0030.00316.29
7.3.300.0000.00716.40
7.3.290.0030.01016.32
7.3.280.0080.00916.30
7.3.270.0060.01017.40
7.3.260.0120.00918.24
7.3.250.0060.01416.50
7.3.240.0030.01316.66
7.3.230.0090.00916.39
7.3.210.0160.00016.62
7.3.200.0100.01019.39
7.3.190.0070.01016.21
7.3.180.0080.00816.59
7.3.170.0040.01116.72
7.3.160.0080.00816.66
7.3.120.0070.00715.15
7.2.330.0110.00816.66
7.2.320.0130.00316.65
7.2.310.0100.01316.69
7.2.300.0140.01016.85
7.2.290.0090.00616.70
7.2.00.0080.00819.17
7.1.100.0030.01018.27
7.1.70.0000.00817.42
7.1.60.0060.01919.24
7.1.50.0110.00717.25
7.1.00.0070.07022.47
7.0.200.0100.00016.60
7.0.140.0170.06021.97
7.0.100.0130.05719.99
7.0.90.0100.06019.85
7.0.80.0170.07320.02
7.0.70.0070.08719.92
7.0.60.0100.07319.96
7.0.50.0100.07320.24
7.0.40.0030.05020.12
7.0.30.0070.07320.05
7.0.20.0030.05320.04
7.0.10.0100.07320.08
7.0.00.0130.07719.99
5.6.250.0000.04720.71
5.6.240.0100.08020.61
5.6.230.0100.08720.62
5.6.220.0030.07020.55
5.6.210.0100.07020.63
5.6.200.0100.08021.03
5.6.190.0130.07321.03
5.6.180.0070.06321.13
5.6.170.0070.07021.07
5.6.160.0030.06721.04
5.6.150.0130.06720.95
5.6.140.0130.08021.01
5.6.130.0300.04721.10
5.6.120.0100.03721.16
5.6.110.0070.10320.92
5.6.100.0100.08021.02
5.6.90.0000.04721.14
5.6.80.0070.07320.41
5.6.70.0030.07720.50
5.6.60.0070.04320.32
5.6.50.0000.04020.49
5.6.40.0170.05320.36
5.6.30.0130.07320.46
5.6.20.0070.04320.29
5.6.10.0130.06020.30
5.6.00.0130.07320.38
5.5.380.0100.06020.34
5.5.370.0130.06320.37
5.5.360.0170.05720.33
5.5.350.0030.09020.45
5.5.340.0100.08020.92
5.5.330.0070.04720.64
5.5.320.0100.08320.92
5.5.310.0100.08020.81
5.5.300.0100.08020.89
5.5.290.0100.07720.91
5.5.280.0100.08020.89
5.5.270.0070.05020.82
5.5.260.0130.07720.85
5.5.250.0070.04320.64
5.5.240.0070.06720.27
5.5.230.0070.07320.29
5.5.220.0200.06720.24
5.5.210.0070.07020.14
5.5.200.0070.08320.22
5.5.190.0070.06320.10
5.5.180.0030.08020.25
5.5.160.0030.08020.14
5.5.150.0070.07020.20
5.5.140.0100.05320.11
5.5.130.0170.06020.11
5.5.120.0070.07320.23
5.5.110.0100.08020.07
5.5.100.0030.05020.13
5.5.90.0130.04020.15
5.5.80.0100.07720.14
5.5.70.0070.05019.95
5.5.60.0070.07720.10
5.5.50.0130.03020.05
5.5.40.0130.07320.02
5.5.30.0000.07719.92
5.5.20.0130.07019.94
5.5.10.0070.03720.03
5.5.00.0030.05020.09
5.4.450.0130.07019.36
5.4.440.0030.07019.38
5.4.430.0070.06319.27
5.4.420.0070.05019.34
5.4.410.0100.05319.24
5.4.400.0130.03718.79
5.4.390.0070.04319.14
5.4.380.0000.07018.82
5.4.370.0030.07719.09
5.4.360.0100.07318.78
5.4.350.0100.05318.83
5.4.340.0070.08018.95
5.4.320.0170.06019.04
5.4.310.0030.04319.12
5.4.300.0100.06718.82
5.4.290.0100.07018.94
5.4.280.0030.07718.78
5.4.270.0070.07719.14
5.4.260.0130.07019.12
5.4.250.0200.07019.09
5.4.240.0100.06719.02
5.4.230.0100.04319.07
5.4.220.0130.04318.78
5.4.210.0070.05019.05
5.4.200.0100.06018.93
5.4.190.0130.06319.04
5.4.180.0030.04019.11
5.4.170.0130.04319.04
5.4.160.0100.07018.95
5.4.150.0130.06719.09
5.4.140.0030.08016.37
5.4.130.0070.06316.10
5.4.120.0100.07016.34
5.4.110.0070.03316.43
5.4.100.0000.06016.26
5.4.90.0100.05716.30
5.4.80.0100.06016.36
5.4.70.0030.05316.20
5.4.60.0100.03016.23
5.4.50.0070.07016.18
5.4.40.0030.07716.39
5.4.30.0100.07016.32
5.4.20.0070.04016.40
5.4.10.0000.05016.39
5.4.00.0070.05015.49
5.3.290.0130.04014.52
5.3.280.0030.03714.54
5.3.270.0030.07714.57
5.3.260.0030.08014.60
5.3.250.0130.05014.59
5.3.240.0100.08014.55
5.3.230.0030.08014.58
5.3.220.0030.07014.52
5.3.210.0030.05714.50
5.3.200.0100.04014.55
5.3.190.0070.07314.43
5.3.180.0070.04314.52
5.3.170.0070.04314.52
5.3.160.0070.07714.52
5.3.150.0030.07314.46
5.3.140.0100.07314.56
5.3.130.0030.06714.55
5.3.120.0130.06314.53
5.3.110.0070.08014.45
5.3.100.0070.07714.02
5.3.90.0070.05313.96
5.3.80.0070.07714.00
5.3.70.0030.07013.99
5.3.60.0070.07313.76
5.3.50.0130.06013.93
5.3.40.0030.07013.85
5.3.30.0070.04713.76
5.3.20.0100.05013.55
5.3.10.0070.07013.62
5.3.00.0030.08013.49
5.2.170.0170.04310.96
5.2.160.0030.06010.98
5.2.150.0070.03710.95
5.2.140.0000.03311.18
5.2.130.0070.04011.05
5.2.120.0030.04011.05
5.2.110.0100.05311.07
5.2.100.0030.06311.02
5.2.90.0100.03010.93
5.2.80.0100.06011.14
5.2.70.0070.06011.08
5.2.60.0070.06011.07
5.2.50.0000.06710.87
5.2.40.0000.06710.82
5.2.30.0000.06710.96
5.2.20.0070.05310.84
5.2.10.0000.05710.80
5.2.00.0070.06010.76
5.1.60.0030.05010.07
5.1.50.0000.0379.98
5.1.40.0100.0479.96
5.1.30.0070.05310.34
5.1.20.0000.04010.41
5.1.10.0030.04010.14
5.1.00.0130.04310.05
5.0.50.0000.0478.59
5.0.40.0030.0408.42
5.0.30.0030.0438.24
5.0.20.0070.0338.29
5.0.10.0030.0438.24
5.0.00.0000.0378.24
4.4.90.0030.0338.24
4.4.80.0000.0378.24
4.4.70.0000.0408.24
4.4.60.0030.0338.24
4.4.50.0000.0378.24
4.4.40.0000.0538.24
4.4.30.0070.0278.24
4.4.20.0000.0338.24
4.4.10.0000.0378.24
4.4.00.0030.0538.24
4.3.110.0070.0308.24
4.3.100.0070.0308.24
4.3.90.0030.0338.24
4.3.80.0000.0278.24
4.3.70.0030.0308.24
4.3.60.0030.0338.24
4.3.50.0030.0208.24
4.3.40.0030.0278.24
4.3.30.0000.0378.24
4.3.20.0000.0338.24
4.3.10.0000.0378.24
4.3.00.0000.0338.24

preferences:
45.83 ms | 401 KiB | 5 Q