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.0110.00418.43
8.3.50.0070.01021.15
8.3.40.0150.00019.02
8.3.30.0120.00418.73
8.3.20.0080.00018.77
8.3.10.0040.00421.14
8.3.00.0040.00419.69
8.2.180.0140.00716.63
8.2.170.0040.01122.96
8.2.160.0000.01520.43
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00820.88
8.2.110.0030.00720.57
8.2.100.0080.00417.97
8.2.90.0000.00919.21
8.2.80.0020.00519.46
8.2.70.0040.00417.61
8.2.60.0080.00017.92
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0030.00519.46
8.2.20.0040.00417.86
8.2.10.0000.00817.96
8.2.00.0060.00317.95
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.01126.35
8.1.250.0040.00428.09
8.1.240.0000.00922.42
8.1.230.0090.00320.89
8.1.220.0060.00318.77
8.1.210.0000.00918.78
8.1.200.0030.00617.38
8.1.190.0060.00317.29
8.1.180.0080.00418.10
8.1.170.0080.00018.63
8.1.160.0040.00418.84
8.1.150.0070.00018.65
8.1.140.0000.00717.54
8.1.130.0030.00317.89
8.1.120.0000.00717.46
8.1.110.0070.00017.47
8.1.100.0040.00417.56
8.1.90.0040.00417.51
8.1.80.0040.00417.56
8.1.70.0030.00317.46
8.1.60.0000.00917.57
8.1.50.0000.00717.60
8.1.40.0000.00717.59
8.1.30.0000.00817.76
8.1.20.0040.00417.68
8.1.10.0040.00417.70
8.1.00.0040.00417.66
8.0.300.0000.00819.88
8.0.290.0040.00417.15
8.0.280.0030.00318.41
8.0.270.0030.00317.27
8.0.260.0030.00316.88
8.0.250.0000.00717.11
8.0.240.0000.00817.10
8.0.230.0000.00717.04
8.0.220.0000.00716.94
8.0.210.0040.00417.04
8.0.200.0000.00817.05
8.0.190.0040.00717.05
8.0.180.0070.00016.98
8.0.170.0060.00316.98
8.0.160.0000.00717.05
8.0.150.0040.00416.82
8.0.140.0070.00016.82
8.0.130.0030.00313.34
8.0.120.0080.00016.87
8.0.110.0070.00017.03
8.0.100.0050.00216.86
8.0.90.0040.00417.01
8.0.80.0030.01316.88
8.0.70.0030.00516.80
8.0.60.0070.00016.99
8.0.50.0000.00816.99
8.0.30.0070.01217.03
8.0.20.0120.02117.40
8.0.10.0040.00417.04
8.0.00.0110.00616.96
7.4.330.0060.00016.68
7.4.320.0030.00316.55
7.4.300.0070.00016.60
7.4.290.0000.00716.75
7.4.280.0070.00016.78
7.4.270.0050.00216.80
7.4.260.0030.00313.42
7.4.250.0070.00016.69
7.4.240.0000.00716.66
7.4.230.0030.00316.71
7.4.220.0110.01116.64
7.4.210.0100.00716.72
7.4.200.0070.00016.57
7.4.190.0040.00416.88
7.4.160.0060.01116.66
7.4.150.0030.01617.40
7.4.140.0030.01417.86
7.4.130.0130.00516.60
7.4.120.0060.01116.58
7.4.110.0150.00316.75
7.4.100.0110.00616.70
7.4.90.0070.01316.65
7.4.80.0100.00719.39
7.4.70.0030.01316.80
7.4.60.0090.00616.79
7.4.50.0040.00416.64
7.4.40.0100.00622.77
7.4.30.0170.00016.58
7.4.00.0070.01115.14
7.3.330.0030.00513.19
7.3.320.0060.00013.06
7.3.310.0070.00016.35
7.3.300.0030.00316.35
7.3.290.0070.00716.33
7.3.280.0080.01116.36
7.3.270.0090.00917.40
7.3.260.0080.01018.24
7.3.250.0100.01116.68
7.3.240.0120.00416.42
7.3.230.0090.00616.39
7.3.210.0100.00616.52
7.3.200.0060.01119.39
7.3.190.0140.00716.49
7.3.180.0030.01316.38
7.3.170.0110.00516.58
7.3.160.0100.00716.29
7.3.120.0030.00914.84
7.2.330.0170.00916.78
7.2.320.0100.00716.79
7.2.310.0120.00616.78
7.2.300.0110.01216.59
7.2.290.0170.00016.69
7.2.60.0000.01617.20
7.1.200.0100.00316.07
7.1.100.0040.00818.25
7.1.70.0080.00317.36
7.1.60.0030.00917.54
7.1.50.0080.00317.03
7.1.40.0080.00317.00
7.1.30.0080.00417.06
7.1.20.0000.01717.30
7.1.10.0040.01116.73
7.1.00.0000.01016.98
7.0.200.0070.00416.76
7.0.190.0030.00316.68
7.0.180.0080.00316.26
7.0.170.0000.00816.71
7.0.160.0030.01216.40
7.0.150.0000.00716.50
7.0.140.0050.00516.84
7.0.130.0090.00017.00
7.0.120.0000.01216.80
7.0.110.0030.00616.42
7.0.100.0040.00416.52
7.0.90.0030.00716.55
7.0.80.0000.00816.50
7.0.70.0030.01016.49
7.0.60.0000.01016.50
7.0.50.0040.00816.68
7.0.40.0040.00415.56
7.0.30.0070.01415.56
7.0.20.0000.00815.56
7.0.10.0030.00715.56
7.0.00.0030.00515.56
5.6.300.0070.03920.67
5.6.290.0170.08320.79
5.6.280.0030.04521.08
5.6.270.0000.05720.82
5.6.260.0030.04521.02
5.6.250.0070.04021.01
5.6.240.0030.04220.88
5.6.230.0070.04721.04
5.6.220.0060.03920.93
5.6.210.0030.03920.95
5.6.200.0070.04320.85
5.6.190.0000.04720.82
5.6.180.0040.04620.82
5.6.170.0070.08320.70
5.6.160.0070.03720.80
5.6.150.0070.03820.95
5.6.140.0060.07120.82
5.6.130.0030.04120.94
5.6.120.0070.05720.98
5.6.110.0030.05220.91
5.6.100.0090.04420.96
5.6.90.0100.03620.90
5.6.80.0000.05620.38
5.6.70.0070.03720.37
5.6.60.0030.04320.10
5.6.50.0070.03720.33
5.6.40.0070.05620.27
5.6.30.0000.04420.32
5.6.20.0030.03920.31
5.6.10.0030.04020.08
5.6.00.0030.03920.16
5.5.380.0070.03617.51
5.5.370.0030.07717.57
5.5.360.0030.05317.40
5.5.350.0030.03917.46
5.5.340.0030.04917.70
5.5.330.0030.04417.84
5.5.320.0060.04518.03
5.5.310.0070.05017.95
5.5.300.0100.03718.13
5.5.290.0030.04618.05
5.5.280.0130.03617.96
5.5.270.0070.04217.99
5.5.260.0300.04017.98
5.5.250.0000.04417.94
5.5.240.0000.04717.45
5.5.230.0030.04017.33
5.5.220.0000.04317.31
5.5.210.0100.04317.40
5.5.200.0000.04417.10
5.5.190.0000.04417.29
5.5.180.0060.03417.10
5.5.160.0130.04017.38
5.5.150.0030.03717.34
5.5.140.0000.04817.29
5.5.130.0100.03517.36
5.5.120.0070.07417.46
5.5.110.0030.03617.41
5.5.100.0100.04417.31
5.5.90.0070.03717.32
5.5.80.0040.03617.20
5.5.70.0030.05017.27
5.5.60.0040.03917.07
5.5.50.0000.07317.27
5.5.40.0000.05016.94
5.5.30.0000.06216.94
5.5.20.0100.04817.18
5.5.10.0000.04517.14
5.5.00.0030.07317.26
5.4.450.0000.05619.37
5.4.440.0100.03719.35
5.4.430.0030.04119.34
5.4.420.0060.04519.32
5.4.410.0070.07719.23
5.4.400.0030.03919.04
5.4.390.0030.05119.00
5.4.380.0000.04319.10
5.4.370.0060.03219.11
5.4.360.0030.03719.07
5.4.350.0000.04119.06
5.4.340.0100.03118.88
5.4.320.0160.03918.98
5.4.310.0030.07219.10
5.4.300.0060.03218.87
5.4.290.0030.03519.07
5.4.280.0130.06918.98
5.4.270.0030.06219.09
5.4.260.0100.03319.16
5.4.250.0030.04019.16
5.4.240.0070.04819.08
5.4.230.0070.04718.85
5.4.220.0000.04119.13
5.4.210.0000.04118.82
5.4.200.0030.03618.99
5.4.190.0000.05619.06
5.4.180.0100.04318.96
5.4.170.0000.07518.90
5.4.160.0070.03218.81
5.4.150.0000.05219.05
5.4.140.0030.04016.40
5.4.130.0030.03916.60
5.4.120.0000.03716.54
5.4.110.0060.03216.64
5.4.100.0030.03616.58
5.4.90.0000.04016.46
5.4.80.0030.07316.33
5.4.70.0070.07116.63
5.4.60.0040.03616.60
5.4.50.0000.06316.33
5.4.40.0100.06916.49
5.4.30.0000.03716.50
5.4.20.0030.04216.59
5.4.10.0030.03616.33
5.4.00.0000.03516.05
5.3.290.0030.03615.56
5.3.280.0100.03715.56
5.3.270.0030.06315.56
5.3.260.0000.05315.56
5.3.250.0100.06515.56
5.3.240.0000.04115.56
5.3.230.0070.07215.56
5.3.220.0070.03915.56
5.3.210.0070.03415.56
5.3.200.0000.03915.56
5.3.190.0230.03215.56
5.3.180.0070.04415.56
5.3.170.0060.03615.56
5.3.160.0000.03915.56
5.3.150.0030.03615.56
5.3.140.0000.05015.56
5.3.130.0000.04415.56
5.3.120.0140.05115.56
5.3.110.0000.04115.56
5.3.100.0140.03415.56
5.3.90.0100.03715.56
5.3.80.0070.03015.56
5.3.70.0030.03315.56
5.3.60.0070.04415.56
5.3.50.0070.05115.56
5.3.40.0030.04015.56
5.3.30.0200.04115.56
5.3.20.0070.06215.56
5.3.10.0060.02915.56
5.3.00.0070.03915.56
5.2.170.0030.03315.56
5.2.160.0000.04515.56
5.2.150.0060.02515.56
5.2.140.0100.02915.56
5.2.130.0000.04715.56
5.2.120.0000.03015.56
5.2.110.0000.03115.56
5.2.100.0030.05815.56
5.2.90.0070.03315.56
5.2.80.0030.02815.56
5.2.70.0030.05515.56
5.2.60.0000.03115.56
5.2.50.0170.02115.56
5.2.40.0030.04115.56
5.2.30.0000.06315.56
5.2.20.0000.04415.56
5.2.10.0030.02615.56
5.2.00.0070.02715.56
5.1.60.0000.02615.56
5.1.50.0070.02015.56
5.1.40.0000.03215.56
5.1.30.0030.03015.56
5.1.20.0060.02515.56
5.1.10.0030.02915.56
5.1.00.0070.02015.56
5.0.50.0070.04615.56
5.0.40.0030.03115.56
5.0.30.0030.04415.56
5.0.20.0030.03215.56
5.0.10.0070.02315.56
5.0.00.0030.03715.56
4.4.90.0030.01815.56
4.4.80.0000.01615.56
4.4.70.0000.03415.56
4.4.60.0000.01715.56
4.4.50.0030.01315.56
4.4.40.0000.02515.56
4.4.30.0000.01715.56
4.4.20.0070.01615.56
4.4.10.0030.01315.56
4.4.00.0030.05415.56
4.3.110.0000.01815.56
4.3.100.0000.01615.56
4.3.90.0030.03715.56
4.3.80.0000.02515.56
4.3.70.0030.01315.56
4.3.60.0000.01815.56
4.3.50.0030.01315.56
4.3.40.0000.02515.56
4.3.30.0000.01715.56
4.3.20.0030.01915.56
4.3.10.0060.01115.56
4.3.00.0000.01615.56

preferences:
51.39 ms | 401 KiB | 5 Q