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 7clqm

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.0160.00016.64
8.0.0rc10.0150.00316.85
8.0.0beta30.0150.00416.65
8.0.0beta10.0110.00716.74
8.0.0alpha30.0030.01316.67
8.0.0alpha20.0120.00616.60
8.0.0alpha10.0070.01016.43
7.4.110.0110.00816.41
7.4.100.0090.01516.59
7.4.90.0130.00716.52
7.4.80.0130.00319.39
7.4.70.0040.01116.36
7.4.60.0000.01616.32
7.4.50.0040.00416.50
7.4.40.0090.01416.61
7.4.30.0100.01016.37
7.4.00.0120.00314.93
7.3.230.0130.00316.39
7.3.210.0130.00316.28
7.3.200.0030.01316.16
7.3.190.0040.01316.31
7.3.180.0070.00716.25
7.3.170.0070.01416.27
7.3.160.0060.00916.30
7.3.10.0090.00616.71
7.3.00.0030.01216.53
7.2.330.0100.00616.29
7.2.320.0190.00016.56
7.2.310.0110.00616.73
7.2.300.0040.01416.69
7.2.290.0100.01316.32
7.2.130.0130.00316.79
7.2.120.0050.00916.68
7.2.110.0060.01016.57
7.2.100.0080.00816.51
7.2.90.0120.00216.72
7.2.80.0100.00516.54
7.2.70.0060.00616.89
7.2.60.0060.00816.75
7.2.50.0020.00916.74
7.2.40.0030.01016.88
7.2.30.0060.00916.81
7.2.20.0080.00816.94
7.2.10.0030.00816.73
7.2.00.0120.00416.60
7.1.250.0070.00715.75
7.1.240.0100.00315.92
7.1.230.0040.01115.74
7.1.220.0000.01015.66
7.1.210.0060.00615.76
7.1.200.0020.00915.63
7.1.190.0040.01115.75
7.1.180.0060.00615.80
7.1.170.0030.00615.89
7.1.160.0080.00815.75
7.1.150.0070.00715.33
7.1.140.0030.01315.55
7.1.130.0030.00915.70
7.1.120.0030.00615.64
7.1.110.0030.00715.82
7.1.100.0060.00615.53
7.1.90.0110.00315.82
7.1.80.0090.00615.64
7.1.70.0050.00716.49
7.1.60.0030.00716.45
7.1.50.0060.00716.18
7.1.40.0100.00315.81
7.1.30.0030.00315.76
7.1.20.0080.00615.62
7.1.10.0090.00615.74
7.1.00.0050.04018.96
7.0.320.0050.00315.30
7.0.310.0000.01215.44
7.0.300.0070.00715.29
7.0.290.0090.00615.36
7.0.280.0100.00315.55
7.0.270.0040.00415.29
7.0.260.0120.00015.42
7.0.250.0140.00015.44
7.0.240.0000.00815.57
7.0.230.0080.00315.54
7.0.220.0080.00315.35
7.0.210.0030.01015.52
7.0.200.0080.00616.00
7.0.190.0100.00315.23
7.0.180.0000.01115.09
7.0.170.0040.00715.26
7.0.160.0070.00715.12
7.0.150.0080.00315.51
7.0.140.0080.00415.42
7.0.130.0030.00915.23
7.0.120.0030.00715.57
7.0.110.0060.00315.11
7.0.100.0020.02817.55
7.0.90.0030.02717.46
7.0.80.0020.02817.55
7.0.70.0020.03117.68
7.0.60.0050.02217.66
7.0.50.0090.01717.83
7.0.40.0080.02316.63
7.0.30.0010.02716.69
7.0.20.0080.02016.81
7.0.10.0050.02316.69
7.0.00.0050.02416.68
5.6.380.0000.00914.49
5.6.370.0090.00914.64
5.6.360.0130.00714.18
5.6.350.0110.00614.44
5.6.340.0060.01014.41
5.6.330.0090.00914.22
5.6.320.0110.00714.48
5.6.310.0070.00314.18
5.6.300.0090.00614.36
5.6.290.0070.00714.24
5.6.280.0130.00014.30
5.6.270.0040.01114.18
5.6.260.0060.00614.04
5.6.250.0100.02717.52
5.6.240.0020.02617.40
5.6.230.0020.02917.41
5.6.220.0100.02017.30
5.6.210.0050.04117.43
5.6.200.0050.02717.48
5.6.190.0070.02317.53
5.6.180.0080.02217.63
5.6.170.0080.01817.71
5.6.160.0040.02417.69
5.6.150.0030.02517.71
5.6.140.0040.02617.61
5.6.130.0030.02617.54
5.6.120.0020.03917.62
5.6.110.0080.02517.58
5.6.100.0040.02317.62
5.6.90.0070.02417.79
5.6.80.0050.02517.38
5.6.70.0050.04517.14
5.6.60.0050.04017.33
5.6.50.0050.04017.33
5.6.40.0100.03817.39
5.6.30.0110.03017.21
5.6.20.0050.02317.25
5.6.10.0050.04517.22
5.6.00.0080.02217.35
5.5.380.0020.03915.86
5.5.370.0040.02315.83
5.5.360.0070.02015.85
5.5.350.0040.02415.80
5.5.340.0060.02316.02
5.5.330.0040.03315.99
5.5.320.0050.02216.01
5.5.310.0050.02616.07
5.5.300.0060.02215.93
5.5.290.0050.02516.09
5.5.280.0020.02716.08
5.5.270.0050.02516.08
5.5.260.0070.02016.08
5.5.250.0080.03015.96
5.5.240.0050.04415.77
5.5.230.0040.04115.72
5.5.220.0030.04015.75
5.5.210.0050.04215.74
5.5.200.0050.02715.76
5.5.190.0120.03815.71
5.5.180.0120.03815.77
5.5.170.0120.00014.12
5.5.160.0070.03315.63
5.5.150.0030.04615.74
5.5.140.0080.03215.76
5.5.130.0060.04015.75
5.5.120.0090.04015.74
5.5.110.0090.03915.64
5.5.100.0070.02815.65
5.5.90.0120.02015.62
5.5.80.0090.03615.66
5.5.70.0050.04615.71
5.5.60.0050.05015.70
5.5.50.0100.03015.66
5.5.40.0060.03515.66
5.5.30.0060.02515.63
5.5.20.0070.04215.65
5.5.10.0130.03515.63
5.5.00.0070.02315.65