3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<p>Bevorder de doorbloeding van je benen door:</p><ul><li>dagelijks voldoende lichaamsbeweging;</li><li>niet te roken;</li><li>bij zittend <a href="http://www.google.com">werk</a> regelmatig een kleine looppauze in te lassen of onder je bureau kleine oefeningen te doen met je benen;</li><li>bij staand werk je gewicht over beide voeten te verdelen en zo veel mogelijk kleine bewegingen te maken;</li><li>je benen te masseren: altijd van beneden naar boven, dus richting je hart.<br /></li></ul>'; $characters = array('<br>', '<li>', '</li>'); // Replace all the list items and breaks by new lines. $replaced_text = str_replace($characters, "\n", strip_tags($text, '<p><br><li>')); // Replace all the opening p tags by emtpy texts. $replaced_text = str_replace('<p>', '', $replaced_text); // Replace all the closing p tage by new lines. $replaced_text = str_replace('</p>', "\n\n", $replaced_text); // Check for any trailing white space. $replaced_text = rtrim($replaced_text); var_dump($replaced_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.3.60.0040.01518.43
8.3.50.0130.00821.11
8.3.40.0170.00018.46
8.3.30.0110.00418.92
8.3.20.0070.00020.31
8.3.10.0030.00523.46
8.3.00.0040.00419.18
8.2.180.0150.00018.16
8.2.170.0140.00022.96
8.2.160.0100.00320.44
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0080.00020.87
8.2.110.0050.00520.83
8.2.100.0060.00617.72
8.2.90.0000.00819.09
8.2.80.0030.00517.97
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0040.00419.65
8.2.30.0000.00718.13
8.2.20.0040.00417.70
8.2.10.0050.00217.89
8.2.00.0060.00318.12
8.1.280.0000.01425.92
8.1.270.0030.00620.24
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0100.00720.76
8.1.230.0080.00417.76
8.1.220.0040.00417.77
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0060.00317.10
8.1.180.0030.00618.10
8.1.170.0000.00818.41
8.1.160.0000.00721.99
8.1.150.0040.00418.82
8.1.140.0070.00017.38
8.1.130.0000.00717.86
8.1.120.0000.00817.29
8.1.110.0060.00317.42
8.1.100.0040.00417.29
8.1.90.0020.00517.27
8.1.80.0000.00717.37
8.1.70.0030.00317.23
8.1.60.0080.00017.52
8.1.50.0040.00417.47
8.1.40.0090.00017.45
8.1.30.0090.00017.50
8.1.20.0040.00417.58
8.1.10.0070.00017.40
8.1.00.0000.00717.42
8.0.300.0040.00419.65
8.0.290.0030.00616.63
8.0.280.0000.00718.25
8.0.270.0030.00517.11
8.0.260.0000.00617.25
8.0.250.0020.00516.93
8.0.240.0030.00316.88
8.0.230.0000.00816.90
8.0.220.0070.00016.87
8.0.210.0060.00316.73
8.0.200.0030.00316.77
8.0.190.0040.00416.77
8.0.180.0040.00416.84
8.0.170.0080.00016.86
8.0.160.0000.00816.80
8.0.150.0000.00716.62
8.0.140.0080.00016.74
8.0.130.0000.00713.22
8.0.120.0040.00416.85
8.0.110.0000.00716.67
8.0.100.0040.00416.79
8.0.90.0080.00016.78
8.0.80.0100.00616.84
8.0.70.0070.00016.78
8.0.60.0040.00416.77
8.0.50.0000.00816.69
8.0.30.0160.00517.12
8.0.20.0140.00517.40
8.0.10.0000.00716.90
8.0.00.0050.01216.53
7.4.330.0030.00315.03
7.4.320.0060.00016.50
7.4.300.0000.00716.42
7.4.290.0040.00416.52
7.4.280.0040.00416.42
7.4.270.0060.00016.43
7.4.260.0060.00016.38
7.4.250.0040.00416.35
7.4.240.0020.00516.47
7.4.230.0030.00316.52
7.4.220.0100.01316.63
7.4.210.0090.00616.54
7.4.200.0030.00516.65
7.4.160.0080.00816.25
7.4.150.0110.00817.40
7.4.140.0120.00517.86
7.4.130.0040.01316.25
7.4.120.0110.00616.37
7.4.110.0110.00616.41
7.4.100.0090.00916.30
7.4.90.0130.00316.43
7.4.80.0070.01019.39
7.4.70.0080.01116.42
7.4.60.0060.01216.42
7.4.50.0030.00516.30
7.4.40.0080.00816.41
7.4.30.0150.00316.53
7.4.00.0030.00915.06
7.3.330.0000.00613.13
7.3.320.0150.00013.00
7.3.310.0070.00016.09
7.3.300.0070.00016.12
7.3.290.0110.00816.12
7.3.280.0090.00816.12
7.3.270.0080.00917.40
7.3.260.0170.00416.38
7.3.250.0110.00916.24
7.3.240.0100.00716.22
7.3.230.0130.00916.39
7.3.210.0100.00716.13
7.3.200.0030.01619.39
7.3.190.0070.00716.31
7.3.180.0150.00616.27
7.3.170.0000.01716.34
7.3.160.0030.01316.47
7.3.10.0030.01016.55
7.3.00.0140.00016.54
7.2.330.0090.00916.45
7.2.320.0130.01316.47
7.2.310.0110.00616.61
7.2.300.0110.00616.27
7.2.290.0190.00316.29
7.2.130.0030.00716.81
7.2.120.0000.00916.80
7.2.110.0110.00416.85
7.2.100.0070.00716.64
7.2.90.0030.00716.88
7.2.80.0090.00316.78
7.2.70.0030.00716.77
7.2.60.0060.00916.79
7.2.50.0090.00916.90
7.2.40.0130.00316.73
7.2.30.0030.01416.56
7.2.20.0030.00716.74
7.2.10.0070.00716.65
7.2.00.0030.01118.08
7.1.250.0000.00815.74
7.1.100.0040.00818.10
7.1.70.0000.00716.96
7.1.60.0070.01719.50
7.1.50.0100.01316.55
7.1.00.0030.07722.30
7.0.200.0030.00716.40
7.0.60.0070.08719.93
7.0.50.0030.08717.88
7.0.40.0030.04320.31
7.0.30.0570.07320.13
7.0.20.0170.05720.20
7.0.10.0200.07320.10
7.0.00.0000.05020.08
5.6.210.0030.04020.72
5.6.200.0070.08718.16
5.6.190.0170.05720.35
5.6.180.0530.06320.33
5.6.170.0330.06020.48
5.6.160.0070.08720.52
5.6.150.0070.04018.09
5.6.140.0070.03718.14
5.6.130.0170.07318.11
5.6.120.0000.04321.09
5.6.110.0100.07721.00
5.6.100.0100.06321.12
5.6.90.0170.07321.01
5.6.80.0200.06720.53
5.5.350.0000.07020.39
5.5.340.0030.04017.93
5.5.330.0030.07020.25
5.5.320.0430.07320.21
5.5.310.0300.07020.21
5.5.300.0100.08018.01
5.5.290.0130.06717.86
5.5.280.0200.07320.84
5.5.270.0070.07720.78
5.5.260.0100.07320.89
5.5.250.0000.05320.69
5.5.240.0070.07320.18
5.4.450.0400.04719.56
5.4.440.0270.04319.45
5.4.430.0600.03319.38
5.4.420.0070.05719.35
5.4.410.0600.00019.02
5.4.400.0600.00018.84
5.4.390.0600.00018.50
5.4.380.0600.00018.56
5.4.370.0630.00018.69
5.4.360.0600.00018.62
5.4.350.0630.00018.72
5.4.340.0600.00018.70
5.4.320.0630.00018.71
5.4.310.0600.00018.68
5.4.300.0700.00018.59
5.4.290.0600.00018.68
5.4.280.0630.00018.46
5.4.270.0600.00018.68
5.4.260.0600.00018.68
5.4.250.0630.00018.70
5.4.240.0630.00018.77
5.4.230.0570.00018.71
5.4.220.0630.00018.60
5.4.210.0600.00018.64
5.4.200.0570.00016.38
5.4.190.0600.00018.72
5.4.180.0600.00018.70
5.4.170.0630.00018.54
5.4.160.0600.00018.48
5.4.150.0730.00018.54
5.4.140.0570.00016.14
5.4.130.0530.00016.15
5.4.120.0570.00016.15
5.4.110.0570.00016.04
5.4.100.0600.00016.04
5.4.90.0570.00016.22
5.4.80.0570.00016.28
5.4.70.0630.00016.14
5.4.60.0570.00016.17
5.4.50.0570.00016.05
5.4.40.0730.00016.10
5.4.30.0570.00016.11
5.4.20.0600.00016.19
5.4.10.0600.00016.15
5.4.00.0570.00015.65
5.3.290.0630.00014.67
5.3.280.0600.00014.56
5.3.270.0600.00014.52
5.3.260.0630.00014.59
5.3.250.0570.00014.60
5.3.240.0570.00014.54
5.3.230.0570.00014.59
5.3.220.0570.00014.46
5.3.210.0600.00014.55
5.3.200.0570.00014.48
5.3.190.0670.00014.60
5.3.180.0600.00014.47
5.3.170.0570.00014.54
5.3.160.0570.00014.53
5.3.150.0600.00014.47
5.3.140.0600.00014.46
5.3.130.0600.00014.63
5.3.120.0600.00014.46
5.3.110.0630.00014.55
5.3.100.0630.00014.02
5.3.90.0600.00014.01
5.3.80.0570.00014.11
5.3.70.0600.00014.01
5.3.60.0570.00014.09
5.3.50.0570.00013.91
5.3.40.0570.00013.89
5.3.30.0570.00014.00
5.3.20.0570.00013.72
5.3.10.0530.00013.60
5.3.00.0570.00013.57
5.2.170.0470.00011.18
5.2.160.0470.00011.20
5.2.150.0470.00011.21
5.2.140.0470.00011.20
5.2.130.0470.00011.09
5.2.120.0570.00011.09
5.2.110.0470.00011.24
5.2.100.0470.00011.11
5.2.90.0570.00011.07
5.2.80.0500.00011.06
5.2.70.0470.00011.03
5.2.60.0470.00011.04
5.2.50.0470.00011.07
5.2.40.0470.00010.92
5.2.30.0470.00010.99
5.2.20.0500.00011.04
5.2.10.0530.00010.85
5.2.00.0430.00010.69
5.1.60.0370.0009.97
5.1.50.0400.00010.13
5.1.40.0400.0009.99
5.1.30.0400.00010.36
5.1.20.0400.00010.46
5.1.10.0470.00010.18
5.1.00.0400.00010.21
5.0.50.0330.0008.56
5.0.40.0300.0008.54
5.0.30.0470.0008.32
5.0.20.0370.0008.17
5.0.10.0330.0008.30
5.0.00.0470.0008.20
4.4.90.0230.0005.95
4.4.80.0230.0005.91
4.4.70.0270.0005.89
4.4.60.0270.0005.87
4.4.50.0230.0005.95
4.4.40.0370.0005.86
4.4.30.0230.0005.90
4.4.20.0230.0005.98
4.4.10.0230.0005.96
4.4.00.0370.0005.93
4.3.110.0230.0005.80
4.3.100.0230.0005.75
4.3.90.0270.0005.92
4.3.80.0400.0005.80
4.3.70.0230.0005.88
4.3.60.0230.0005.79
4.3.50.0300.0005.79
4.3.40.0370.0005.75
4.3.30.0230.0004.57
4.3.20.0270.0004.54
4.3.10.0230.0004.61
4.3.00.0270.01716.09

preferences:
122.94 ms | 401 KiB | 5 Q