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="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.00718.18
8.3.50.0130.00421.09
8.3.40.0150.00018.66
8.3.30.0140.00018.72
8.3.20.0080.00018.61
8.3.10.0040.00419.34
8.3.00.0080.00023.48
8.2.180.0160.00016.75
8.2.170.0120.00622.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0030.00619.30
8.2.110.0000.00920.32
8.2.100.0090.00317.91
8.2.90.0030.00619.27
8.2.80.0040.00418.03
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0040.00419.76
8.2.20.0000.00717.54
8.2.10.0050.00317.72
8.2.00.0000.00717.67
8.1.280.0170.00325.92
8.1.270.0000.00723.99
8.1.260.0080.00626.35
8.1.250.0050.00228.09
8.1.240.0000.01022.52
8.1.230.0070.00320.89
8.1.220.0000.00818.77
8.1.210.0080.00018.84
8.1.200.0060.00317.25
8.1.190.0040.00417.16
8.1.180.0030.00618.10
8.1.170.0000.00818.72
8.1.160.0000.00818.77
8.1.150.0000.00718.49
8.1.140.0040.00417.29
8.1.130.0000.00617.89
8.1.120.0070.00017.40
8.1.110.0050.00517.30
8.1.100.0030.00517.41
8.1.90.0050.00217.42
8.1.80.0000.00717.41
8.1.70.0030.00317.39
8.1.60.0030.00517.52
8.1.50.0040.00417.46
8.1.40.0080.00017.48
8.1.30.0040.00417.57
8.1.20.0060.00317.50
8.1.10.0030.00517.52
8.1.00.0000.01017.52
8.0.300.0070.00019.91
8.0.290.0020.00517.17
8.0.280.0000.00718.45
8.0.270.0000.00717.27
8.0.260.0050.00316.77
8.0.250.0000.00716.91
8.0.240.0030.00516.90
8.0.230.0000.00716.91
8.0.220.0000.00716.82
8.0.210.0070.00016.80
8.0.200.0030.00316.85
8.0.190.0070.00016.93
8.0.180.0000.00716.74
8.0.170.0040.00416.85
8.0.160.0080.00016.87
8.0.150.0050.00216.78
8.0.140.0030.00316.79
8.0.130.0030.00313.21
8.0.120.0040.00416.69
8.0.110.0000.00816.85
8.0.100.0000.00716.63
8.0.90.0040.00416.70
8.0.80.0110.01116.84
8.0.70.0000.00816.80
8.0.60.0000.00716.66
8.0.50.0070.00016.87
8.0.30.0120.01217.14
8.0.20.0110.00917.40
8.0.10.0040.00416.91
8.0.00.0110.00816.57
7.4.330.0000.00614.66
7.4.320.0030.00316.55
7.4.300.0030.00316.58
7.4.290.0000.00716.58
7.4.280.0030.00316.45
7.4.270.0020.00516.50
7.4.260.0030.00313.23
7.4.250.0000.00716.51
7.4.240.0070.00016.54
7.4.230.0040.00416.26
7.4.220.0090.00916.47
7.4.210.0080.00716.46
7.4.200.0000.00716.62
7.4.190.0000.00916.69
7.4.160.0090.00616.39
7.4.150.0150.00917.40
7.4.140.0120.00517.86
7.4.130.0090.00816.41
7.4.120.0100.00616.36
7.4.110.0110.00716.45
7.4.100.0100.00716.45
7.4.90.0070.01116.53
7.4.80.0090.00919.37
7.4.70.0120.00416.39
7.4.60.0040.01516.20
7.4.50.0030.00316.45
7.4.40.0100.00322.27
7.4.30.0150.00316.64
7.4.00.0050.01114.88
7.3.330.0050.00012.82
7.3.320.0050.00012.98
7.3.310.0030.00316.14
7.3.300.0000.00716.20
7.3.290.0070.01116.15
7.3.280.0120.00616.11
7.3.270.0030.01417.40
7.3.260.0090.01418.24
7.3.250.0150.00516.10
7.3.240.0100.00616.21
7.3.230.0030.01316.39
7.3.210.0130.01316.24
7.3.200.0120.00919.39
7.3.190.0130.00516.34
7.3.180.0140.00316.24
7.3.170.0120.00416.27
7.3.160.0130.00316.12
7.3.120.0100.00414.65
7.3.110.0130.00314.60
7.3.100.0040.01214.63
7.3.90.0040.00814.47
7.3.80.0000.01014.72
7.3.70.0060.01214.60
7.3.60.0030.01414.61
7.3.50.0040.00814.73
7.3.40.0030.01014.73
7.3.30.0030.01214.77
7.3.20.0070.00416.34
7.3.10.0050.00516.55
7.3.00.0050.00816.25
7.2.330.0110.00716.64
7.2.320.0100.00716.58
7.2.310.0090.01516.56
7.2.300.0140.00316.22
7.2.290.0030.01416.58
7.2.250.0100.01014.71
7.2.240.0090.00915.07
7.2.230.0000.01515.16
7.2.220.0030.01014.94
7.2.210.0000.01314.81
7.2.200.0030.01214.89
7.2.190.0100.00714.87
7.2.180.0080.00614.75
7.2.170.0030.01214.93
7.2.130.0040.00716.73
7.2.120.0030.01116.75
7.2.110.0100.00716.60
7.2.100.0170.00716.50
7.2.90.0120.00516.66
7.2.80.0260.01016.38
7.2.70.0080.00416.66
7.2.60.0070.01016.61
7.2.50.0060.00616.53
7.2.40.0050.00516.75
7.2.30.0080.00416.53
7.2.20.0060.00616.63
7.2.10.0050.00516.61
7.2.00.0060.00916.63
7.1.330.0070.00715.77
7.1.320.0030.01015.57
7.1.310.0110.00015.69
7.1.300.0110.00015.47
7.1.290.0070.00715.75
7.1.280.0000.01415.32
7.1.270.0000.00915.74
7.1.260.0100.00315.91
7.1.250.0030.00915.45
7.1.70.0030.00617.09
7.1.60.0100.00017.22
7.1.50.0070.00316.86
7.1.00.0030.07322.51
7.0.200.0030.01216.73
7.0.140.0030.07322.11
7.0.60.0200.08019.84
7.0.50.0330.07020.38
7.0.40.0300.05020.08
7.0.30.0270.06320.08
7.0.20.0130.04720.11
7.0.10.0170.08020.07
7.0.00.0200.08020.02
5.6.280.0070.06720.97
5.6.210.0100.06020.70
5.6.200.0300.08021.12
5.6.190.0200.06721.05
5.6.180.0300.07020.98
5.6.170.0270.07721.00
5.6.160.0170.06020.97
5.6.150.0200.07021.12
5.6.140.0230.07020.99
5.6.130.0230.06721.11
5.6.120.0330.06320.98
5.6.110.0130.06320.96
5.6.100.0200.06720.93
5.6.90.0270.07321.07
5.6.80.0130.04020.39
5.6.70.0070.04720.51
5.6.60.0130.04020.36
5.6.50.0270.07020.33
5.6.40.0230.07320.45
5.6.30.0300.06720.45
5.6.20.0100.05020.36
5.6.10.0230.04320.29
5.6.00.0330.04720.36
5.5.350.0230.06020.39
5.5.340.0200.08320.76
5.5.330.0200.07320.87
5.5.320.0130.08020.80
5.5.310.0170.05720.86
5.5.300.0300.07320.61
5.5.290.0130.05020.72
5.5.280.0170.08020.88
5.5.270.0200.07020.77
5.5.260.0230.05320.79
5.5.250.0200.08020.54
5.5.240.0170.03720.06
5.5.230.0200.07020.13
5.5.220.0170.07320.25
5.5.210.0230.05720.33
5.5.200.0300.07020.11
5.5.190.0200.06720.03
5.5.180.0170.07720.21
5.5.160.0170.07020.19
5.5.150.0200.03720.18
5.5.140.0330.06020.07
5.5.130.0130.04020.21
5.5.120.0130.07020.02
5.5.110.0230.06020.11
5.5.100.0170.07020.22
5.5.90.0300.05319.94
5.5.80.0170.08019.99
5.5.70.0100.07020.07
5.5.60.0070.06720.19
5.5.50.0200.07020.20
5.5.40.0170.06320.11
5.5.30.0100.04020.05
5.5.20.0270.05320.05
5.5.10.0200.04720.04
5.5.00.0100.04320.06
5.4.450.0230.06319.30
5.4.440.0230.07019.49
5.4.430.0170.05319.53
5.4.420.0270.07019.27
5.4.410.0100.05719.25
5.4.400.0170.05018.90
5.4.390.0230.05018.93
5.4.380.0230.05318.97
5.4.370.0130.07719.00
5.4.360.0270.06318.98
5.4.350.0170.08019.10
5.4.340.0200.07018.93
5.4.320.0130.04019.16
5.4.310.0130.04019.05
5.4.300.0230.07718.84
5.4.290.0130.06719.20
5.4.280.0100.07318.96
5.4.270.0100.07319.02
5.4.260.0170.05019.02
5.4.250.0200.06719.00
5.4.240.0130.04718.98
5.4.230.0230.07018.84
5.4.220.0300.05718.94
5.4.210.0200.07019.01
5.4.200.0170.04019.00
5.4.190.0170.05318.91
5.4.180.0230.03019.09
5.4.170.0100.04018.97
5.4.160.0200.06718.92
5.4.150.0130.04318.98
5.4.140.0170.06716.36
5.4.130.0100.03716.27
5.4.120.0170.04016.11
5.4.110.0100.03716.25
5.4.100.0100.03716.36
5.4.90.0170.04316.38
5.4.80.0230.06016.23
5.4.70.0070.06016.23
5.4.60.0100.07016.30
5.4.50.0130.03716.25
5.4.40.0030.03716.27
5.4.30.0100.03316.45
5.4.20.0130.06016.25
5.4.10.0170.06716.26
5.4.00.0200.06015.80
5.3.290.0170.03714.64
5.3.280.0230.06014.38
5.3.270.0170.04714.45
5.3.260.0170.03714.58
5.3.250.0100.04714.45
5.3.240.0070.04314.52
5.3.230.0130.06314.57
5.3.220.0030.05714.53
5.3.210.0230.03314.52
5.3.200.0070.04014.54
5.3.190.0130.06714.49
5.3.180.0130.03314.54
5.3.170.0130.07014.50
5.3.160.0130.05014.54
5.3.150.0170.07014.54
5.3.140.0130.03014.54
5.3.130.0130.07314.46
5.3.120.0230.06314.48
5.3.110.0230.07314.47
5.3.100.0100.07714.00
5.3.90.0130.05013.99
5.3.80.0130.05313.96
5.3.70.0230.02713.86
5.3.60.0430.05313.98
5.3.50.0130.07313.87
5.3.40.0100.06313.79
5.3.30.0100.07313.88
5.3.20.0300.06313.54
5.3.10.0200.05013.58
5.3.00.0200.05713.48
5.2.170.0200.05311.13
5.2.160.0070.06711.13
5.2.150.0130.06011.13
5.2.140.0130.06011.11
5.2.130.0100.06711.01
5.2.120.0170.05710.88
5.2.110.0170.05711.13
5.2.100.0130.06011.07
5.2.90.0200.06011.02
5.2.80.0170.06710.88
5.2.70.0100.05311.13
5.2.60.0200.04011.03
5.2.50.0170.06711.00
5.2.40.0070.06311.03
5.2.30.0070.06011.00
5.2.20.0100.04010.95
5.2.10.0130.05310.89
5.2.00.0130.05310.76
5.1.60.0130.03010.15
5.1.50.0070.02710.15
5.1.40.0130.02010.15
5.1.30.0070.03010.34
5.1.20.0070.03310.30
5.1.10.0070.02710.15
5.1.00.0130.02010.15
5.0.50.0000.02010.15
5.0.40.0030.01710.15
5.0.30.0030.03010.15
5.0.20.0030.01310.15
5.0.10.0000.02010.15
5.0.00.0000.02310.15
4.4.90.0000.03010.15
4.4.80.0000.03710.15
4.4.70.0030.03310.15
4.4.60.0030.03710.15
4.4.50.0030.03310.15
4.4.40.0070.02310.15
4.4.30.0030.02010.15
4.4.20.0070.01310.15
4.4.10.0030.01310.15
4.4.00.0070.02710.15
4.3.110.0030.01710.15
4.3.100.0000.02010.15
4.3.90.0000.01310.15
4.3.80.0000.02010.15
4.3.70.0000.01010.15
4.3.60.0000.01310.15
4.3.50.0000.01310.15
4.3.40.0030.01710.15
4.3.30.0030.01010.15
4.3.20.0000.01310.15
4.3.10.0030.01010.15
4.3.00.0000.01310.15

preferences:
44.21 ms | 401 KiB | 5 Q