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.0090.00616.50
8.3.50.0170.00717.45
8.3.40.0040.01118.68
8.3.30.0110.00418.59
8.3.20.0040.00418.77
8.3.10.0080.00020.48
8.3.00.0090.00619.13
8.2.180.0140.00716.63
8.2.170.0140.00722.96
8.2.160.0110.00321.21
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0060.00326.16
8.2.120.0040.00419.38
8.2.110.0000.00921.04
8.2.100.0040.00817.91
8.2.90.0030.00619.01
8.2.80.0000.00718.03
8.2.70.0040.00417.75
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0040.00418.03
8.2.30.0030.00618.05
8.2.20.0000.00817.55
8.2.10.0000.00717.72
8.2.00.0040.00417.73
8.1.280.0060.01025.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00020.86
8.1.230.0060.00621.03
8.1.220.0040.00417.74
8.1.210.0040.00418.95
8.1.200.0060.00317.22
8.1.190.0000.00817.28
8.1.180.0040.00418.10
8.1.170.0050.00218.91
8.1.160.0040.00418.83
8.1.150.0040.00418.46
8.1.140.0000.00717.40
8.1.130.0000.00817.76
8.1.120.0000.01017.34
8.1.110.0030.00617.38
8.1.100.0040.00417.29
8.1.90.0040.00417.31
8.1.80.0030.00317.36
8.1.70.0030.00317.36
8.1.60.0020.00517.59
8.1.50.0030.00617.46
8.1.40.0040.00417.43
8.1.30.0040.00417.60
8.1.20.0030.00517.51
8.1.10.0000.00817.53
8.1.00.0050.00317.41
8.0.300.0030.00319.98
8.0.290.0050.00316.75
8.0.280.0070.00018.45
8.0.270.0070.00017.26
8.0.260.0060.00316.87
8.0.250.0000.00816.99
8.0.240.0000.00716.96
8.0.230.0000.00716.86
8.0.220.0070.00016.68
8.0.210.0000.00716.84
8.0.200.0030.00316.85
8.0.190.0060.00316.89
8.0.180.0040.00316.86
8.0.170.0080.00016.88
8.0.160.0040.00416.96
8.0.150.0000.00816.71
8.0.140.0000.00716.69
8.0.130.0030.00313.34
8.0.120.0050.00216.83
8.0.110.0040.00416.70
8.0.100.0040.00416.95
8.0.90.0070.00016.89
8.0.80.0060.00916.89
8.0.70.0000.00716.70
8.0.60.0070.00016.74
8.0.50.0040.00416.70
8.0.30.0110.00817.04
8.0.20.0090.01116.79
8.0.10.0050.00317.01
8.0.00.0130.00716.65
7.4.330.0040.00012.91
7.4.320.0090.00016.34
7.4.300.0030.00616.55
7.4.290.0040.00416.45
7.4.280.0000.00716.51
7.4.270.0000.00716.46
7.4.260.0030.00313.18
7.4.250.0000.00816.52
7.4.240.0000.00716.59
7.4.230.0000.00716.19
7.4.220.0100.01016.55
7.4.210.0030.01116.48
7.4.200.0000.00716.29
7.4.190.0030.00316.71
7.4.160.0080.00816.34
7.4.150.0030.01416.36
7.4.140.0070.01016.45
7.4.130.0110.00516.36
7.4.120.0100.00716.43
7.4.110.0130.01016.36
7.4.100.0070.01316.36
7.4.90.0060.01616.29
7.4.80.0090.00916.57
7.4.70.0040.01416.38
7.4.60.0080.01316.51
7.4.50.0030.00616.45
7.4.40.0090.00616.44
7.4.30.0170.00316.38
7.4.00.0030.01214.98
7.3.330.0030.00313.00
7.3.320.0030.00313.02
7.3.310.0000.00716.08
7.3.300.0000.00716.14
7.3.290.0100.00716.18
7.3.280.0060.00916.10
7.3.270.0130.00616.18
7.3.260.0140.01016.22
7.3.250.0100.00916.36
7.3.240.0030.01616.00
7.3.230.0140.00516.26
7.3.210.0120.00916.32
7.3.200.0040.01319.39
7.3.190.0100.01016.53
7.3.180.0130.00316.10
7.3.170.0090.00616.11
7.3.160.0120.00616.14
7.3.120.0060.01214.38
7.3.110.0060.00614.47
7.3.100.0080.00414.69
7.3.90.0030.01414.80
7.3.80.0160.00014.46
7.3.70.0090.00614.62
7.3.60.0040.00414.46
7.3.50.0000.01314.63
7.3.40.0030.01314.57
7.3.30.0140.00014.74
7.3.20.0080.00816.68
7.3.10.0070.01116.28
7.3.00.0040.01016.23
7.2.330.0090.00916.53
7.2.320.0110.00616.54
7.2.310.0130.01316.46
7.2.300.0110.00616.43
7.2.290.0070.01016.57
7.2.240.0060.00614.84
7.2.230.0030.00714.77
7.2.220.0040.01114.97
7.2.210.0040.00815.04
7.2.200.0090.00015.06
7.2.190.0000.01215.00
7.2.180.0130.00314.82
7.2.170.0100.00714.97
7.2.160.0070.00715.05
7.2.150.0040.01117.00
7.2.140.0110.00416.88
7.2.130.0110.01116.64
7.2.120.0070.01016.60
7.2.110.0070.01016.61
7.2.100.0120.00716.33
7.2.90.0110.00616.57
7.2.80.0050.01316.62
7.2.70.0140.00716.61
7.2.60.0100.00816.61
7.2.50.0060.00816.61
7.2.40.0070.01316.51
7.2.30.0050.00916.48
7.2.20.0170.00316.35
7.2.10.0080.01216.62
7.2.00.0100.00816.66
7.1.330.0060.00615.79
7.1.320.0090.00315.66
7.1.310.0060.00615.61
7.1.300.0040.01115.88
7.1.290.0100.00015.71
7.1.280.0100.00315.63
7.1.270.0040.01215.71
7.1.260.0070.01015.66
7.1.250.0080.00615.53
7.1.200.0070.00715.54
7.1.70.0030.00617.08
7.1.60.0140.01119.40
7.1.50.0130.00916.65
7.1.00.0030.03322.31
7.0.200.0000.00716.71
7.0.140.0100.08721.95
7.0.120.0000.06322.09
7.0.60.0030.05019.87
7.0.50.0130.06317.85
7.0.40.0130.08320.09
7.0.30.0330.07020.16
7.0.20.0270.07020.34
7.0.10.0100.06020.09
7.0.00.0070.08320.16
5.6.280.0030.07321.04
5.6.210.0130.07320.75
5.6.200.0100.07018.16
5.6.190.0030.05020.63
5.6.180.0500.05020.41
5.6.170.0300.05320.39
5.6.160.0070.07720.47
5.6.150.0070.08018.18
5.6.140.0130.06718.13
5.6.130.0030.04018.13
5.6.120.0100.08020.90
5.6.110.0100.08320.96
5.6.100.0030.04021.07
5.6.90.0030.04020.96
5.6.80.0200.06020.40
5.5.350.0170.07020.32
5.5.340.0070.08017.88
5.5.330.0100.04720.46
5.5.320.0400.06720.21
5.5.310.0300.06720.30
5.5.300.0130.04017.95
5.5.290.0170.06317.99
5.5.280.0070.04020.87
5.5.270.0070.08320.71
5.5.260.0170.06720.71
5.5.250.0170.07720.69
5.5.240.0170.06720.36
5.4.450.0630.04719.56
5.4.440.0830.02719.09
5.4.430.0770.03719.07
5.4.420.0570.03719.47
5.4.410.0770.04019.41
5.4.400.0530.04019.11
5.4.390.0670.04718.93
5.4.380.0570.04718.88
5.4.370.0400.03719.21
5.4.360.0670.03318.79
5.4.350.0400.03318.76
5.4.340.0630.03319.13
5.4.320.0400.04019.13
5.4.310.0500.04019.09
5.4.300.0400.03318.89
5.4.290.0630.03319.24
5.4.280.0470.04318.79
5.4.270.0770.03018.79
5.4.260.0570.04018.76
5.4.250.0530.04019.15
5.4.240.0630.03319.21
5.4.230.0600.03319.12
5.4.220.0800.04018.92
5.4.210.0330.04319.21
5.4.200.0270.04319.03
5.4.190.0800.03719.11
5.4.180.0630.04319.02
5.4.170.0670.04019.11
5.4.160.0230.04319.04
5.4.150.0330.03718.74
5.4.140.0330.03716.30
5.4.130.0170.06016.17
5.4.120.0130.02716.25
5.4.110.0170.03016.22
5.4.100.0100.03316.50
5.4.90.0100.04016.27
5.4.80.0070.04016.31
5.4.70.0100.03016.18
5.4.60.0170.03316.39
5.4.50.0170.02716.03
5.4.40.0070.03716.34
5.4.30.0070.03316.18
5.4.20.0030.04716.40
5.4.10.4630.03016.36
5.4.00.0370.03715.72
5.3.290.0570.02716.01
5.3.280.0500.04715.66
5.3.270.0570.03715.66
5.3.260.0300.05315.66
5.3.250.0470.03715.66
5.3.240.0130.03015.63
5.3.230.0030.04715.59
5.3.220.0200.02315.59
5.3.210.0100.04015.59
5.3.200.0270.03015.59
5.3.190.0130.03715.59
5.3.180.0170.03315.59
5.3.170.0030.04715.59
5.3.160.0100.03015.59
5.3.150.0030.04015.59
5.3.140.0070.03015.59
5.3.130.0070.03015.67
5.3.120.0000.04315.67
5.3.110.0070.03715.67
5.3.100.0130.03715.64
5.3.90.0830.03715.64
5.3.80.0570.03715.63
5.3.70.0600.03715.63
5.3.60.0230.04315.63
5.3.50.0530.04315.63
5.3.40.0400.03315.63
5.3.30.0600.04015.63
5.3.20.0500.05015.63
5.3.10.0400.05015.63
5.3.00.0500.05015.63
5.2.170.0200.03715.63
5.2.160.0470.03315.63
5.2.150.0330.02715.63
5.2.140.0200.03315.63
5.2.130.0370.03015.63
5.2.120.0330.02315.63
5.2.110.0430.02715.63
5.2.100.0330.03015.63
5.2.90.0330.03315.63
5.2.80.0170.03315.63
5.2.70.0530.04015.63
5.2.60.0570.03315.63
5.2.50.0500.03715.63
5.2.40.0270.03315.63
5.2.30.0330.03015.63
5.2.20.0430.02715.63
5.2.10.0230.03015.63
5.2.00.0500.02715.63
5.1.60.0270.02715.63
5.1.50.0300.03015.63
5.1.40.0070.02315.63
5.1.30.0200.02715.63
5.1.20.0600.02315.63
5.1.10.0370.02315.63
5.1.00.0400.02315.63
5.0.50.0200.02315.63
5.0.40.0130.02315.52
5.0.30.0300.02315.51
5.0.20.0130.01715.51
5.0.10.0100.02015.51
5.0.00.0100.03315.51
4.4.90.0300.01315.63
4.4.80.0130.01715.63
4.4.70.0100.01315.63
4.4.60.0070.01715.63
4.4.50.0070.01315.63
4.4.40.0300.02015.63
4.4.30.0130.01715.63
4.4.20.0100.02015.63
4.4.10.0130.00715.63
4.4.00.0270.03015.61
4.3.110.0170.01715.52
4.3.100.0030.01315.51
4.3.90.0100.01715.51
4.3.80.0330.01315.51
4.3.70.0170.01315.51
4.3.60.0130.01315.51
4.3.50.0170.01315.51
4.3.40.0100.02015.51
4.3.30.0130.01715.51
4.3.20.0100.01715.51
4.3.10.0200.01015.51
4.3.00.0030.01715.51

preferences:
42.21 ms | 401 KiB | 5 Q