3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Oele\nBoele\n\n\n\n\nDus Want\n\nBlaaaaaaaaaaaa"; $text = '<p>' . $text . '</p>'; $text = preg_replace('#\n\n\n*#', '</p><p>', $text); $text = preg_replace('#\n#', '<br />', $text); $text = preg_replace('#><#', ">\n<", $text); echo $text;

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.4.120.0120.00720.55
8.4.110.0120.00822.12
8.4.100.0080.00517.92
8.4.90.0130.00720.29
8.4.80.0060.00317.93
8.4.70.0120.00917.86
8.4.60.0080.01218.71
8.4.50.0080.01217.89
8.4.40.0070.01417.76
8.4.30.0130.00619.34
8.4.20.0030.01618.01
8.4.10.0160.00319.76
8.3.250.0090.00918.75
8.3.240.0090.00916.50
8.3.230.0110.00516.66
8.3.220.0100.01018.85
8.3.210.0050.00216.96
8.3.200.0050.00416.45
8.3.190.0090.01017.09
8.3.180.0030.00618.65
8.3.170.0120.00619.21
8.3.160.0040.01318.56
8.3.150.0090.00620.56
8.3.140.0140.00416.78
8.3.130.0060.00318.55
8.3.120.0080.00019.13
8.3.110.0090.00016.93
8.3.100.0060.00316.83
8.3.90.0040.00426.77
8.3.80.0030.00719.36
8.3.70.0120.00916.75
8.3.60.0150.00618.68
8.3.50.0130.00721.14
8.3.40.0110.00418.67
8.3.30.0120.00318.95
8.3.20.0070.00020.16
8.3.10.0090.00022.14
8.3.00.0040.00422.51
8.2.290.0140.00516.43
8.2.280.0140.00618.52
8.2.270.0130.00617.20
8.2.260.0070.01018.84
8.2.250.0050.00318.71
8.2.240.0070.00317.04
8.2.230.0040.00420.94
8.2.220.0050.00324.06
8.2.210.0100.00326.77
8.2.200.0060.00318.88
8.2.190.0080.00818.54
8.2.180.0120.00418.30
8.2.170.0110.00418.91
8.2.160.0060.00922.96
8.2.150.0090.00025.66
8.2.140.0000.00824.66
8.2.130.0140.00426.16
8.2.120.0040.00419.38
8.2.110.0060.00322.21
8.2.100.0120.00019.21
8.2.90.0000.00819.23
8.2.80.0040.00418.04
8.2.70.0040.00417.63
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0030.00618.22
8.2.30.0000.00718.02
8.2.20.0040.00417.76
8.2.10.0000.00717.95
8.2.00.0030.00617.99
8.1.330.0110.00916.39
8.1.320.0160.00516.29
8.1.310.0070.01116.93
8.1.300.0130.00320.28
8.1.290.0090.00030.84
8.1.280.0180.00025.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00323.83
8.1.230.0040.00819.16
8.1.220.0000.00917.79
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0030.00517.50
8.1.180.0040.00418.79
8.1.170.0070.00318.70
8.1.160.0000.00722.11
8.1.150.0040.00418.78
8.1.140.0000.00717.55
8.1.130.0030.00317.79
8.1.120.0030.00317.53
8.1.110.0000.00717.64
8.1.100.0040.00417.44
8.1.90.0040.00417.47
8.1.80.0040.00417.51
8.1.70.0030.00317.58
8.1.60.0000.00917.69
8.1.50.0050.00317.67
8.1.40.0040.00417.68
8.1.30.0080.00017.68
8.1.20.0050.00317.73
8.1.10.0000.00817.66
8.1.00.0040.00417.53
8.0.300.0000.00818.77
8.0.290.0000.00817.18
8.0.280.0000.00718.50
8.0.270.0000.00717.19
8.0.260.0030.00316.84
8.0.250.0000.00716.98
8.0.240.0050.00517.13
8.0.230.0040.00417.10
8.0.220.0030.00317.04
8.0.210.0040.00417.00
8.0.200.0000.00616.98
8.0.190.0040.00417.05
8.0.180.0030.00517.08
8.0.170.0030.00617.02
8.0.160.0060.00317.00
8.0.150.0000.00717.07
8.0.140.0070.00316.98
8.0.130.0030.00313.43
8.0.120.0000.00816.91
8.0.110.0040.00417.06
8.0.100.0050.00216.91
8.0.90.0040.00416.98
8.0.80.0080.00816.91
8.0.70.0040.00417.15
8.0.60.0000.00717.00
8.0.50.0000.00716.79
8.0.30.0030.01717.04
8.0.20.0060.01117.40
8.0.10.0040.00417.10
8.0.00.0140.00716.80
7.4.330.0050.00015.00
7.4.320.0030.00316.63
7.4.300.0030.00316.70
7.4.290.0030.00316.73
7.4.280.0040.00416.65
7.4.270.0000.00716.55
7.4.260.0070.00016.77
7.4.250.0000.00816.58
7.4.240.0000.00716.65
7.4.230.0070.00016.59
7.4.220.0030.01516.78
7.4.210.0070.00616.82
7.4.200.0000.00716.83
7.4.190.0000.00816.60
7.4.160.0060.00916.64
7.4.150.0120.00617.40
7.4.140.0140.00517.86
7.4.130.0070.00916.53
7.4.120.0120.00616.71
7.4.110.0320.02116.81
7.4.100.0100.00716.73
7.4.90.0140.00316.78
7.4.80.0030.02119.39
7.4.70.0130.00316.53
7.4.60.0090.00916.77
7.4.50.0040.00416.78
7.4.40.0070.01122.77
7.4.30.0090.00816.49
7.4.00.0100.00715.11
7.3.330.0020.00213.11
7.3.320.0050.00013.34
7.3.310.0000.00716.32
7.3.300.0000.00716.32
7.3.290.0100.00316.45
7.3.280.0080.01016.44
7.3.270.0120.00917.40
7.3.260.0080.01116.70
7.3.250.0070.01016.43
7.3.240.0090.01016.71
7.3.230.0070.01016.40
7.3.210.0130.00316.60
7.3.200.0060.01219.39
7.3.190.0060.01016.89
7.3.180.0100.00716.63
7.3.170.0120.00616.63
7.3.160.0120.00816.47
7.3.120.0040.01115.05
7.2.330.0090.00916.68
7.2.320.0120.01016.80
7.2.310.0140.00316.59
7.2.300.0100.00716.88
7.2.290.0040.01416.73
7.2.110.0080.01116.67
7.2.60.0140.00017.23
7.2.00.0070.00719.88
7.1.200.0100.00315.98
7.1.100.0040.01117.87
7.1.70.0040.00817.36
7.1.60.0040.00817.53
7.1.50.0000.01316.90
7.1.40.0040.01116.81
7.1.30.0000.01316.96
7.1.20.0030.02417.13
7.1.10.0080.01116.80
7.1.00.0040.00417.00
7.0.200.0030.00516.86
7.0.190.0050.00316.72
7.0.180.0050.00316.39
7.0.170.0030.00716.39
7.0.160.0000.00816.31
7.0.150.0000.01416.54
7.0.140.0050.00316.73
7.0.130.0070.00016.91
7.0.120.0030.00716.54
7.0.110.0070.00016.76
7.0.100.0050.00516.54
7.0.90.0000.01416.68
7.0.80.0090.00916.75
7.0.70.0000.00916.64
7.0.60.0040.00416.58
7.0.50.0000.00816.70
7.0.40.0030.00516.21
7.0.30.0030.00316.21
7.0.20.0030.00716.21
7.0.10.0000.00716.21
7.0.00.0030.00716.21
5.6.300.0000.04720.91
5.6.290.0030.04420.88
5.6.280.0030.04420.92
5.6.270.0000.04820.88
5.6.260.0070.04321.08
5.6.250.0070.04520.89
5.6.240.0030.06320.96
5.6.230.0000.07420.79
5.6.220.0030.04321.02
5.6.210.0030.04021.04
5.6.200.0030.04220.82
5.6.190.0070.04320.76
5.6.180.0100.03320.86
5.6.170.0030.07520.82
5.6.160.0030.05220.91
5.6.150.0030.04720.81
5.6.140.0000.04820.82
5.6.130.0030.04320.81
5.6.120.0070.04221.02
5.6.110.0130.03320.85
5.6.100.0070.04021.01
5.6.90.0030.06220.80
5.6.80.0030.06020.24
5.6.70.0030.04620.19
5.6.60.0100.07620.23
5.6.50.0060.03520.15
5.6.40.0100.03220.34
5.6.30.0030.03820.41
5.6.20.0030.03720.21
5.6.10.0100.03720.08
5.6.00.0060.03920.16
5.5.380.0070.03417.57
5.5.370.0030.04317.47
5.5.360.0000.04617.46
5.5.350.0030.04317.53
5.5.340.0000.05618.02
5.5.330.0070.04017.97
5.5.320.0030.04917.69
5.5.310.0030.04617.86
5.5.300.0030.04018.02
5.5.290.0090.03418.03
5.5.280.0070.03718.03
5.5.270.0030.04017.69
5.5.260.0030.04517.85
5.5.250.0030.03917.52
5.5.240.0030.07317.41
5.5.230.0070.05717.36
5.5.220.0060.03817.40
5.5.210.0030.04117.40
5.5.200.0070.03317.30
5.5.190.0030.06817.21
5.5.180.0030.04317.38
5.5.160.0130.03217.09
5.5.150.0070.03517.38
5.5.140.0000.04317.34
5.5.130.0030.04517.37
5.5.120.0100.06517.29
5.5.110.0000.04117.37
5.5.100.0030.06717.12
5.5.90.0030.06617.21
5.5.80.0040.03617.32
5.5.70.0100.04616.98
5.5.60.0030.07417.24
5.5.50.0030.07817.00
5.5.40.0070.07617.36
5.5.30.0060.06817.27
5.5.20.0000.04016.94
5.5.10.0000.07816.94
5.5.00.0000.04217.34
5.4.450.0070.04119.31
5.4.440.0030.05719.32
5.4.430.0070.05919.30
5.4.420.0030.03719.30
5.4.410.0060.03419.13
5.4.400.0030.06219.02
5.4.390.0030.06618.88
5.4.380.0000.03819.04
5.4.370.0030.04319.02
5.4.360.0000.04018.86
5.4.350.0030.03619.14
5.4.340.0000.04819.19
5.4.320.0100.05918.88
5.4.310.0060.03419.02
5.4.300.0030.03719.02
5.4.290.0070.07019.09
5.4.280.0030.06619.04
5.4.270.0030.03718.82
5.4.260.0060.03418.97
5.4.250.0000.04319.06
5.4.240.0070.07419.06
5.4.230.0030.08018.82
5.4.220.0000.04319.06
5.4.210.0100.04819.08
5.4.200.0100.07318.91
5.4.190.0000.05419.13
5.4.180.0070.06618.96
5.4.170.0070.04818.90
5.4.160.0030.07519.05
5.4.150.0200.03918.80
5.4.140.0000.03816.64
5.4.130.0030.04416.48
5.4.120.0070.05316.56
5.4.110.0030.03716.55
5.4.100.0070.05016.70
5.4.90.0030.05016.74
5.4.80.0030.06916.68
5.4.70.0030.07116.71
5.4.60.0030.03816.63
5.4.50.0030.03716.43
5.4.40.0000.04116.67
5.4.30.0000.03716.43
5.4.20.0000.04016.38
5.4.10.0060.03216.62
5.4.00.0030.05416.21
5.3.290.0070.07016.21
5.3.280.0000.04516.21
5.3.270.0000.08316.21
5.3.260.0170.03016.21
5.3.250.0030.03716.21
5.3.240.0030.03516.21
5.3.230.0030.03616.21
5.3.220.0100.03116.21
5.3.210.0000.08216.21
5.3.200.0070.07316.21
5.3.190.0000.07216.21
5.3.180.0000.04016.21
5.3.170.0000.09416.21
5.3.160.0060.06816.21
5.3.150.0030.04116.21
5.3.140.0060.03216.21
5.3.130.0070.03316.21
5.3.120.0000.04016.21
5.3.110.0000.08116.21
5.3.100.0000.08716.21
5.3.90.0000.04816.21
5.3.80.0030.07516.21
5.3.70.0060.05816.21
5.3.60.0030.07616.21
5.3.50.0030.03316.21
5.3.40.0030.03416.21
5.3.30.0000.04016.21
5.3.20.0000.03916.21
5.3.10.0000.03616.21
5.3.00.0100.03916.21
5.2.170.0000.03116.21
5.2.160.0000.03116.21
5.2.150.0000.03116.21
5.2.140.0000.04716.21
5.2.130.0030.03716.21
5.2.120.0070.02616.21
5.2.110.0000.05616.21
5.2.100.0000.04816.21
5.2.90.0030.02716.21
5.2.80.0000.03416.21
5.2.70.0000.03116.21
5.2.60.0030.03016.21
5.2.50.0030.03116.21
5.2.40.0000.03316.21
5.2.30.0000.03216.21
5.2.20.0110.02116.21
5.2.10.0070.02316.21
5.2.00.0000.03016.21
5.1.60.0060.01916.21
5.1.50.0030.02316.21
5.1.40.0060.01916.21
5.1.30.0030.02716.21
5.1.20.0030.02616.21
5.1.10.0070.02316.21
5.1.00.0000.02816.21
5.0.50.0030.02116.21
5.0.40.0000.02716.21
5.0.30.0000.03416.21
5.0.20.0070.02316.21
5.0.10.0030.03016.21
5.0.00.0000.03716.21
4.4.90.0060.02816.21
4.4.80.0000.01816.21
4.4.70.0000.01616.21
4.4.60.0000.01716.21
4.4.50.0000.01716.21
4.4.40.0030.02216.21
4.4.30.0030.01316.21
4.4.20.0000.01716.21
4.4.10.0000.02016.21
4.4.00.0070.02116.21
4.3.110.0000.02016.21
4.3.100.0060.01116.21
4.3.90.0000.01616.21
4.3.80.0030.02116.21
4.3.70.0000.02516.21
4.3.60.0070.01616.21
4.3.50.0000.01616.21
4.3.40.0030.02316.21
4.3.30.0030.01916.21
4.3.20.0000.01716.21
4.3.10.0090.01316.21
4.3.00.0030.01516.21

preferences:
29.73 ms | 403 KiB | 5 Q