3v4l.org

run code in 300+ PHP versions simultaneously
<?php $permalink = 'permalink'; $text_link = 'text_link'; $links = array( '<li><a>total</a></li>', '<li><a href="permalink">permalink</a></li>', '<li><a href="permalink">permalink</a></li>', ); $total = count($links); for($permalink=1; $permalink<=$total ;$permalink++){ $new_links[] = preg_replace('|<a>'.$total.'</a>|', '<a>'.$text_link.'</a>', $links[$permalink]); } print_r($new_links);

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.70.0100.00716.75
8.3.60.0130.00718.55
8.3.50.0090.00922.18
8.3.40.0070.00718.95
8.3.30.0000.01419.18
8.3.20.0070.00020.15
8.3.10.0060.00322.14
8.3.00.0050.00322.51
8.2.190.0100.00616.75
8.2.180.0090.00617.00
8.2.170.0110.00722.96
8.2.160.0070.01121.14
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00317.88
8.2.110.0070.01019.38
8.2.100.0060.00618.34
8.2.90.0000.00819.35
8.2.80.0080.00017.97
8.2.70.0000.00918.00
8.2.60.0130.00417.55
8.2.50.0000.00818.10
8.2.40.0000.00820.25
8.2.30.0080.00021.18
8.2.20.0050.00217.81
8.2.10.0020.00517.96
8.2.00.0030.00517.87
8.1.280.0110.00425.92
8.1.270.0040.00422.20
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0070.00322.76
8.1.230.0060.00620.32
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00818.84
8.1.160.0050.00318.79
8.1.150.0070.00020.11
8.1.140.0040.00417.61
8.1.130.0000.00717.84
8.1.120.0040.00417.59
8.1.110.0000.00717.54
8.1.100.0050.00217.59
8.1.90.0030.00317.61
8.1.80.0000.00717.57
8.1.70.0060.00317.55
8.1.60.0040.00417.70
8.1.50.0000.00917.64
8.1.40.0040.00417.63
8.1.30.0040.00417.71
8.1.20.0040.00417.70
8.1.10.0000.00717.73
8.1.00.0000.00817.57
8.0.300.0000.00719.00
8.0.290.0000.00816.88
8.0.280.0030.00318.40
8.0.270.0000.00717.28
8.0.260.0080.00017.11
8.0.250.0030.00317.16
8.0.240.0030.00317.06
8.0.230.0000.00717.13
8.0.220.0030.00317.04
8.0.210.0000.00717.15
8.0.200.0060.00017.02
8.0.190.0040.00417.10
8.0.180.0070.00317.12
8.0.170.0040.00417.13
8.0.160.0030.00517.11
8.0.150.0000.00717.13
8.0.140.0000.00817.05
8.0.130.0030.00313.57
8.0.120.0080.00017.12
8.0.110.0000.00716.92
8.0.100.0040.00417.01
8.0.90.0040.00417.09
8.0.80.0040.01117.14
8.0.70.0040.00416.92
8.0.60.0000.00716.98
8.0.50.0040.00416.92
8.0.30.0160.00717.14
8.0.20.0100.00817.43
8.0.10.0000.00817.09
8.0.00.0140.00316.90
7.4.330.0050.00015.09
7.4.320.0000.00716.72
7.4.300.0030.00316.72
7.4.290.0030.00316.83
7.4.280.0080.00016.63
7.4.270.0040.00416.79
7.4.260.0040.00716.74
7.4.250.0000.00716.82
7.4.240.0040.00416.81
7.4.230.0030.00316.70
7.4.220.0130.00516.82
7.4.210.0090.00716.80
7.4.200.0040.00416.79
7.4.190.0070.00016.71
7.4.160.0070.01016.76
7.4.150.0070.01417.40
7.4.140.0100.00817.86
7.4.130.0100.01016.79
7.4.120.0110.00716.66
7.4.110.0030.01316.75
7.4.100.0150.00316.70
7.4.90.0090.00916.80
7.4.80.0120.00919.39
7.4.70.0080.00816.69
7.4.60.0090.00616.84
7.4.50.0040.00416.69
7.4.40.0090.00622.77
7.4.30.0060.01016.72
7.4.00.0100.00315.35
7.3.330.0030.00313.37
7.3.320.0000.00613.40
7.3.310.0030.00316.33
7.3.300.0000.00616.52
7.3.290.0100.01016.38
7.3.280.0080.00916.51
7.3.270.0060.01017.40
7.3.260.0130.00416.64
7.3.250.0100.00716.66
7.3.240.0070.01016.53
7.3.230.0030.01416.55
7.3.210.0290.01316.75
7.3.200.0080.01519.39
7.3.190.0090.01316.71
7.3.180.0120.00816.63
7.3.170.0110.01116.62
7.3.160.0100.00716.52
7.3.120.0100.00315.10
7.2.330.0140.00316.70
7.2.320.0150.00416.79
7.2.310.0060.01816.74
7.2.300.0070.00916.98
7.2.290.0030.02016.87
7.1.200.0100.00016.13
7.1.70.0070.00017.36
7.1.60.0100.01319.82
7.1.50.0080.00817.04
7.1.00.0000.08022.31
7.0.200.0070.00317.00
7.0.140.0000.07021.95
7.0.60.0070.08719.93
7.0.50.0100.04017.91
7.0.40.0000.04720.25
7.0.30.0270.08020.14
7.0.20.0300.07020.26
7.0.10.0230.08320.12
7.0.00.0000.09020.25
5.6.280.0000.07721.08
5.6.210.0030.06320.61
5.6.200.0100.04318.25
5.6.190.0100.06020.47
5.6.180.4200.03020.57
5.6.170.0270.08320.52
5.6.160.0030.05320.46
5.6.150.0030.04318.19
5.6.140.0000.09018.27
5.6.130.0100.07718.28
5.6.120.0000.07021.05
5.6.110.0070.04021.00
5.6.100.0170.07321.00
5.6.90.0270.05021.13
5.6.80.0030.08720.52
5.6.70.0170.03720.37
5.5.350.0030.08320.52
5.5.340.0030.08017.99
5.5.330.0070.08320.21
5.5.320.0300.07320.41
5.5.310.0300.07720.37
5.5.300.0130.08018.04
5.5.290.0030.08318.04
5.5.280.0000.04320.68
5.5.270.0100.07720.83
5.5.260.0130.07720.67
5.5.250.0070.08320.68
5.5.240.0030.05720.26
5.4.450.0270.05019.41
5.4.440.0330.03719.49
5.4.430.0370.03319.39
5.4.420.0430.03019.52
5.4.410.0330.03719.27
5.4.400.0470.05719.23
5.4.390.0500.03719.12
5.4.380.0400.04019.00
5.4.370.0330.05319.22
5.4.360.0370.04019.07
5.4.350.0400.06319.16
5.4.340.0300.03719.05
5.4.320.0330.03718.84
5.4.310.0500.05719.16
5.4.300.0470.05719.13
5.4.290.0330.05018.86
5.4.280.0300.04319.09
5.4.270.0270.04319.29
5.4.260.0430.07019.22
5.4.250.0430.05019.01
5.4.240.0330.05019.20
5.4.230.0500.05719.16
5.4.220.0330.05719.22
5.4.210.0400.04719.14
5.4.200.0530.05719.07
5.4.190.0430.05719.04
5.4.180.0530.05318.98
5.4.170.0430.06718.86
5.4.160.0430.05319.20
5.4.150.0430.06718.95
5.4.140.0430.05316.49
5.4.130.0500.05716.45
5.4.120.0370.04316.48
5.4.110.0430.06016.57
5.4.100.0500.05716.55
5.4.90.0430.07016.30
5.4.80.0370.05716.43
5.4.70.0500.04016.17
5.4.60.0400.05716.48
5.4.50.0430.04716.16
5.4.40.0500.05716.52
5.4.30.0330.03716.37
5.4.20.0500.06316.42
5.4.10.0370.03716.41
5.4.00.0430.06315.80
5.3.290.0370.04315.23
5.3.280.0370.03715.23
5.3.270.0430.03315.23
5.3.260.0400.04715.23
5.3.250.0430.06015.23
5.3.240.0270.04315.23
5.3.230.0400.03015.23
5.3.220.0530.06015.23
5.3.210.0330.03715.23
5.3.200.0370.03315.23
5.3.190.0400.03015.23
5.3.180.0400.03015.23
5.3.170.0470.06015.23
5.3.160.0430.03715.23
5.3.150.0470.06315.23
5.3.140.0400.03715.23
5.3.130.0470.03315.23
5.3.120.0430.03015.23
5.3.110.0370.03715.23
5.3.100.0500.05715.23
5.3.90.0430.06015.23
5.3.80.0470.06315.23
5.3.70.0300.04015.23
5.3.60.0470.06015.23
5.3.50.0370.03715.23
5.3.40.0500.06015.23
5.3.30.0400.06315.23
5.3.20.0530.05315.23
5.3.10.0430.03715.23
5.3.00.0330.03315.23
5.2.170.0270.03015.23
5.2.160.0400.05015.23
5.2.150.0300.03715.23
5.2.140.0400.03715.23
5.2.130.0470.05015.23
5.2.120.0400.04715.23
5.2.110.0330.03715.23
5.2.100.0400.04015.23
5.2.90.0330.03315.23
5.2.80.0400.05015.23
5.2.70.0370.03315.23
5.2.60.0400.03015.23
5.2.50.0470.04715.23
5.2.40.0370.05315.23
5.2.30.0270.03315.23
5.2.20.0370.05315.23
5.2.10.0270.04015.23
5.2.00.0330.05015.23
5.1.60.0300.02015.23
5.1.50.0270.02715.23
5.1.40.0270.03015.23
5.1.30.0270.03015.23
5.1.20.0330.05715.23
5.1.10.0330.03315.23
5.1.00.0270.03315.23
5.0.50.0200.04315.23
5.0.40.0170.03015.23
5.0.30.0170.06315.23
5.0.20.0130.02315.23
5.0.10.0170.03015.23
5.0.00.0130.05715.23
4.4.90.0170.03315.23
4.4.80.0170.03315.23
4.4.70.0130.02015.23
4.4.60.0170.01715.23
4.4.50.0100.02015.23
4.4.40.0200.05315.23
4.4.30.0170.03315.23
4.4.20.0130.01715.23
4.4.10.0130.01715.23
4.4.00.0170.02715.23
4.3.110.0170.01315.23
4.3.100.0230.02715.23
4.3.90.0170.01315.23
4.3.80.0170.04015.23
4.3.70.0100.02315.23
4.3.60.0170.01715.23
4.3.50.0170.02015.23
4.3.40.0130.03315.23
4.3.30.0100.01315.23
4.3.20.0100.03315.23
4.3.10.0130.02315.23
4.3.00.0070.03715.23

preferences:
45.34 ms | 401 KiB | 5 Q