3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'fix me <a href="www.link.com">link</a> or fix me <a href="link.com">link</a> and fix me too <a href="http://link.com">link</a> and replace me with <a href="http://www.link.com>link</a> <a href="http://www-is-for-world-wide-web.com">buggy!</a>'; echo str_replace('www.www.', 'www.', str_replace('http://www.http://', 'http://www.', str_replace('a href="', 'a href="http://www.', $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.0100.01016.50
8.3.50.0070.01421.87
8.3.40.0080.00818.85
8.3.30.0080.00818.95
8.3.20.0000.00720.21
8.3.10.0000.00723.61
8.3.00.0000.00720.61
8.2.180.0140.00718.41
8.2.170.0040.01122.96
8.2.160.0090.00918.97
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00626.16
8.2.120.0070.00022.13
8.2.110.0090.00022.24
8.2.100.0110.00017.72
8.2.90.0060.00319.08
8.2.80.0040.00417.97
8.2.70.0030.01017.63
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0070.00318.00
8.2.30.0050.00318.13
8.2.20.0070.00017.67
8.2.10.0040.00417.68
8.2.00.0000.00717.68
8.1.280.0070.01025.92
8.1.270.0090.00022.23
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0050.00523.97
8.1.230.0070.00419.14
8.1.220.0040.00417.75
8.1.210.0030.00518.77
8.1.200.0110.00017.22
8.1.190.0000.00717.40
8.1.180.0050.00518.10
8.1.170.0050.00318.43
8.1.160.0030.00721.89
8.1.150.0000.00718.58
8.1.140.0030.00517.39
8.1.130.0000.00717.79
8.1.120.0000.00717.43
8.1.110.0030.00317.46
8.1.100.0030.00517.45
8.1.90.0050.00317.24
8.1.80.0030.00317.29
8.1.70.0070.00017.30
8.1.60.0040.00817.52
8.1.50.0000.00817.45
8.1.40.0040.00417.36
8.1.30.0000.00817.47
8.1.20.0000.00717.55
8.1.10.0030.00517.53
8.1.00.0030.00617.36
8.0.300.0000.00818.77
8.0.290.0000.00717.18
8.0.280.0030.00318.35
8.0.270.0000.00717.17
8.0.260.0060.00316.70
8.0.250.0030.00316.83
8.0.240.0040.00416.94
8.0.230.0000.00716.80
8.0.220.0070.00016.88
8.0.210.0030.00316.82
8.0.200.0060.00016.79
8.0.190.0000.00716.87
8.0.180.0000.00716.89
8.0.170.0070.00016.90
8.0.160.0000.00716.82
8.0.150.0000.00816.78
8.0.140.0030.00316.71
8.0.130.0000.00513.20
8.0.120.0040.00416.71
8.0.110.0040.00416.80
8.0.100.0040.00416.77
8.0.90.0050.00316.73
8.0.80.0060.00916.84
8.0.70.0040.00416.65
8.0.60.0000.00816.85
8.0.50.0030.00516.79
8.0.30.0120.00817.09
8.0.20.0070.01217.40
8.0.10.0040.00416.84
8.0.00.0100.00816.64
7.4.330.0000.00515.00
7.4.320.0040.00416.54
7.4.300.0030.00316.47
7.4.290.0030.00316.56
7.4.280.0080.00016.51
7.4.270.0040.00416.55
7.4.260.0000.00716.43
7.4.250.0040.00416.40
7.4.240.0040.00416.50
7.4.230.0040.00416.54
7.4.220.0130.01316.46
7.4.210.0050.00916.50
7.4.200.0030.00316.54
7.4.190.0000.00716.58
7.4.160.0030.01316.48
7.4.150.0100.01317.40
7.4.140.0140.00817.86
7.4.130.0070.01016.45
7.4.120.0150.00416.55
7.4.110.0060.01016.60
7.4.100.0040.02016.52
7.4.90.0110.00716.47
7.4.80.0100.00716.28
7.4.70.0060.00916.60
7.4.60.0060.01116.27
7.4.50.0030.00516.36
7.4.40.0030.01322.77
7.4.30.0140.00316.35
7.4.00.0100.00615.09
7.3.330.0050.00013.05
7.3.320.0000.00612.99
7.3.310.0080.00016.19
7.3.300.0000.00716.17
7.3.290.0070.01016.17
7.3.280.0080.00916.12
7.3.270.0090.00917.40
7.3.260.0110.00816.36
7.3.250.0060.01016.44
7.3.240.0030.01616.25
7.3.230.0070.01016.39
7.3.210.0070.01416.40
7.3.200.0120.00919.39
7.3.190.0170.00016.40
7.3.180.0070.01416.20
7.3.170.0080.00816.32
7.3.160.0090.00616.23
7.3.120.0090.00714.80
7.3.110.0040.01214.90
7.3.100.0060.00614.54
7.3.90.0000.01714.62
7.3.80.0070.01014.83
7.3.70.0080.00414.42
7.3.60.0000.01414.59
7.3.50.0110.00714.69
7.3.40.0000.00914.59
7.3.30.0080.00614.85
7.3.20.0030.01216.45
7.3.10.0070.00716.47
7.3.00.0000.01416.57
7.2.330.0090.00816.35
7.2.320.0090.00716.52
7.2.310.0030.01316.66
7.2.300.0150.00316.41
7.2.290.0000.01616.50
7.2.250.0070.01414.93
7.2.240.0030.01314.80
7.2.230.0080.00814.47
7.2.220.0040.01514.80
7.2.210.0070.01014.77
7.2.200.0080.00814.67
7.2.190.0040.01214.92
7.2.180.0070.01115.00
7.2.170.0090.00314.89
7.2.00.0050.00519.10
7.1.330.0080.00415.84
7.1.320.0030.01015.57
7.1.310.0000.01515.81
7.1.300.0110.00715.82
7.1.290.0060.00315.41
7.1.280.0100.00315.40
7.1.270.0080.00615.81
7.1.260.0100.00015.77
7.1.100.0210.00417.71
7.1.70.0100.00617.11
7.1.60.0090.00319.27
7.1.50.0040.00716.83
7.1.00.0000.08022.35
7.0.200.0080.00416.21
7.0.140.0030.07322.09
7.0.60.0100.08019.96
7.0.50.0130.06317.87
7.0.40.0070.08320.04
7.0.30.0300.04020.16
7.0.20.0330.07720.20
7.0.10.0100.07720.00
7.0.00.0200.07320.03
5.6.210.0200.07020.50
5.6.200.0030.04018.12
5.6.190.0030.04720.35
5.6.180.0300.08320.67
5.6.170.0230.08320.37
5.6.160.0070.04720.41
5.6.150.0000.04318.22
5.6.140.0100.07018.11
5.6.130.0070.06718.14
5.6.120.0200.07721.08
5.6.110.0030.04320.97
5.6.100.0100.06720.95
5.6.90.0100.08320.96
5.6.80.0030.08020.35
5.5.350.3030.03320.37
5.5.340.0000.04717.89
5.5.330.0070.06320.36
5.5.320.0270.08020.31
5.5.310.0270.05720.33
5.5.300.0070.08718.01
5.5.290.0030.07018.02
5.5.280.0130.07720.73
5.5.270.0130.03720.94
5.5.260.0100.08020.87
5.5.250.0000.04320.57
5.5.240.0270.08020.35
5.4.450.0270.04019.57
5.4.440.0170.06019.43
5.4.430.0200.04319.45
5.4.420.0230.05319.38
5.4.410.0230.03719.29
5.4.400.0170.03718.94
5.4.390.0200.07019.08
5.4.380.0170.03718.93
5.4.370.0130.07319.16
5.4.360.0170.05018.91
5.4.350.0230.05719.07
5.4.340.0170.03719.09
5.4.320.0230.04018.80
5.4.310.0170.03719.13
5.4.300.0270.03719.13
5.4.290.0100.04318.93
5.4.280.0200.06719.07
5.4.270.0170.03719.08
5.4.260.0200.07018.93
5.4.250.0200.06019.13
5.4.240.0230.07019.15
5.4.230.0170.07019.11
5.4.220.0230.07319.11
5.4.210.0200.07318.92
5.4.200.0130.04018.91
5.4.190.0170.03319.07
5.4.180.0200.03319.07
5.4.170.0170.05718.76
5.4.160.0270.04719.07
5.4.150.0200.06718.93
5.4.140.0200.04316.45
5.4.130.0170.06316.54
5.4.120.0300.05716.43
5.4.110.0170.07016.18
5.4.100.0230.04016.39
5.4.90.0170.03716.41
5.4.80.0170.05316.37
5.4.70.0100.03716.38
5.4.60.0170.03316.36
5.4.50.0100.04016.36
5.4.40.0130.07016.46
5.4.30.0170.04316.36
5.4.20.0170.03716.20
5.4.10.0270.04716.31
5.4.00.0230.05015.67
5.3.290.0130.04714.62
5.3.280.0200.03014.43
5.3.270.0170.03714.51
5.3.260.0130.03714.50
5.3.250.0370.05314.56
5.3.240.0170.04014.63
5.3.230.0200.07014.54
5.3.220.0230.04014.47
5.3.210.0170.04014.41
5.3.200.0200.07014.61
5.3.190.0200.04314.40
5.3.180.0230.03014.48
5.3.170.0130.03714.42
5.3.160.0130.04014.40
5.3.150.0130.04014.44
5.3.140.0300.04014.41
5.3.130.0100.05014.40
5.3.120.0370.06714.49
5.3.110.0170.03714.39
5.3.100.0300.02313.91
5.3.90.0230.02714.07
5.3.80.0270.06313.84
5.3.70.0100.07014.06
5.3.60.0200.04013.95
5.3.50.0200.06313.93
5.3.40.0230.05013.89
5.3.30.0170.03313.76
5.3.20.0100.04013.67
5.3.10.0100.04013.50
5.3.00.0230.03013.51
5.2.170.0170.02712.28
5.2.160.0100.03312.28
5.2.150.0300.04012.28
5.2.140.0170.04712.28
5.2.130.0100.03712.28
5.2.120.0170.04712.28
5.2.110.0070.03712.28
5.2.100.0170.03312.28
5.2.90.0130.03012.28
5.2.80.0070.05012.28
5.2.70.0200.05712.28
5.2.60.0170.02712.28
5.2.50.0100.03712.28
5.2.40.0100.03012.28
5.2.30.0130.04012.28
5.2.20.0130.03012.28
5.2.10.0100.06012.28
5.2.00.0100.05712.28
5.1.60.0100.04312.28
5.1.50.0200.04012.28
5.1.40.0170.04312.28
5.1.30.0100.05712.28
5.1.20.0170.03012.28
5.1.10.0170.05012.28
5.1.00.0100.03012.28
5.0.50.0030.02312.28
5.0.40.0070.01712.28
5.0.30.0130.05012.28
5.0.20.0000.03312.28
5.0.10.0100.04012.28
5.0.00.0070.06312.28
4.4.90.0030.03312.28
4.4.80.0070.02012.28
4.4.70.0030.01712.28
4.4.60.0070.01312.28
4.4.50.0070.03312.28
4.4.40.0100.04312.28
4.4.30.0030.02012.28
4.4.20.0100.03312.28
4.4.10.0100.01312.28
4.4.00.0070.02312.28
4.3.110.0030.02712.28
4.3.100.0030.02012.28
4.3.90.0000.01712.28
4.3.80.0100.02312.28
4.3.70.0070.01312.28
4.3.60.0030.01712.28
4.3.50.0070.01312.28
4.3.40.0030.02312.28
4.3.30.0030.03712.28
4.3.20.0000.02012.28
4.3.10.0000.01712.28
4.3.00.0030.01312.28

preferences:
61.31 ms | 400 KiB | 5 Q