3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = '<h1>title</h1> <ul> <li>first</li> <li>second</li> </ul>'; $output = str_replace(array("\r\n", "\r", "\n"), "", $output); var_dump($output);die;
based on XlDag

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.0.0rc20.0000.01716.58
8.0.0rc10.0030.01316.83
8.0.0beta30.0140.00616.71
8.0.0beta10.0100.00916.54
8.0.0alpha30.0090.01216.59
8.0.0alpha20.0030.01516.49
8.0.0alpha10.0060.01216.61
7.4.110.0100.01316.41
7.4.100.0140.00916.30
7.4.90.0100.00616.44
7.4.80.0100.00719.39
7.4.70.0080.00816.61
7.4.60.0100.00716.50
7.4.50.0020.00216.55
7.4.40.0060.01216.43
7.4.30.0060.01316.36
7.4.00.0080.00814.78
7.3.230.0100.00716.39
7.3.210.0120.00416.27
7.3.200.0120.00916.44
7.3.190.0030.01916.21
7.3.180.0110.00716.09
7.3.170.0180.00316.27
7.3.160.0060.00916.29
7.2.330.0110.00616.63
7.2.320.0150.00916.29
7.2.310.0090.00916.66
7.2.300.0030.01316.55
7.2.290.0060.01816.73
7.2.80.0120.00616.38
7.2.60.0030.01316.91
7.2.00.0070.01019.36
7.1.200.0090.00615.41
7.1.100.0000.01118.15
7.1.70.0000.00716.84
7.1.60.0100.01319.48
7.1.50.0070.01716.92
7.1.00.0030.07722.54
7.0.200.0330.01014.80
7.0.100.0070.07019.97
7.0.90.0030.06019.97
7.0.80.0130.07719.93
7.0.70.0170.06019.93
7.0.60.0100.07319.96
7.0.50.0200.04720.34
7.0.40.0100.07720.11
7.0.30.0070.05020.11
7.0.20.0030.05320.10
7.0.10.0100.04320.13
7.0.00.0070.07020.18
5.6.280.0000.03320.98
5.6.250.0000.10320.78
5.6.240.0100.07720.71
5.6.230.0100.07320.73
5.6.220.0270.05720.65
5.6.210.0000.08720.60
5.6.200.0030.08721.03
5.6.190.0100.07020.95
5.6.180.0070.05021.02
5.6.170.0100.08720.95
5.6.160.0100.04721.03
5.6.150.0100.04721.10
5.6.140.0100.08721.09
5.6.130.0070.04721.07
5.6.120.0170.07321.04
5.6.110.0030.05721.11
5.6.100.0030.07721.15
5.6.90.0130.03020.98
5.6.80.0100.07320.46
5.6.70.0030.03720.34
5.6.60.0070.06020.38
5.6.50.0070.07020.45
5.6.40.0030.07020.39
5.6.30.0130.03020.48
5.6.20.0000.07320.39
5.6.10.0100.05320.39
5.6.00.0100.07020.29
5.5.380.0070.08020.56
5.5.370.0100.07020.49
5.5.360.0070.06720.39
5.5.350.0030.05020.36
5.5.340.0070.07720.88
5.5.330.0000.05720.91
5.5.320.0070.05720.75
5.5.310.0070.04720.82
5.5.300.0000.05020.88
5.5.290.0070.04720.76
5.5.280.0100.06320.75
5.5.270.0030.04320.81
5.5.260.0070.08020.91
5.5.250.0070.04320.70
5.5.240.0070.08320.17
5.5.230.0070.05020.25
5.5.220.0000.08720.00
5.5.210.0000.04720.30
5.5.200.0030.04720.18
5.5.190.0130.04020.11
5.5.180.0070.03720.26
5.5.160.0070.06720.16
5.5.150.0170.06720.25
5.5.140.0070.06320.19
5.5.130.0030.07720.12
5.5.120.0070.03720.10
5.5.110.0030.04020.19
5.5.100.0000.08320.11
5.5.90.0030.04320.05
5.5.80.0100.07320.06
5.5.70.0170.07020.05
5.5.60.0070.07020.05
5.5.50.0130.04020.00
5.5.40.0300.04720.05
5.5.30.0130.04020.07
5.5.20.0030.08020.04
5.5.10.0100.05320.06
5.5.00.0070.08019.90