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++){ $links[] = preg_replace('|<a>'.$total.'</a>|', '<a>'.$text_link.'</a>', $links[$permalink]); } print_r($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.40.0120.00319.05
8.3.30.0140.00019.22
8.3.20.0070.00020.29
8.3.10.0080.00022.05
8.3.00.0000.00822.34
8.2.170.0110.00722.96
8.2.160.0030.01021.05
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00417.75
8.2.110.0110.00722.32
8.2.100.0040.00819.82
8.2.90.0020.00519.21
8.2.80.0050.00519.66
8.2.70.0050.00317.75
8.2.60.0060.00618.05
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0000.00818.23
8.2.20.0050.00317.79
8.2.10.0040.00417.81
8.2.00.0000.00717.77
8.1.270.0040.00422.25
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0070.00323.92
8.1.230.0070.00419.09
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0000.00817.53
8.1.180.0000.00818.10
8.1.170.0080.00018.77
8.1.160.0000.00722.04
8.1.150.0000.00818.84
8.1.140.0040.00417.51
8.1.130.0040.00417.73
8.1.120.0070.00017.63
8.1.110.0050.00217.61
8.1.100.0040.00417.61
8.1.90.0000.00717.57
8.1.80.0040.00417.57
8.1.70.0030.00517.57
8.1.60.0000.01217.75
8.1.50.0000.00817.69
8.1.40.0000.00717.71
8.1.30.0000.00817.79
8.1.20.0030.00617.74
8.1.10.0040.00417.73
8.1.00.0040.00417.66
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0000.00818.47
8.0.270.0000.00717.33
8.0.260.0030.00317.10
8.0.250.0070.00016.99
8.0.240.0040.00417.12
8.0.230.0050.00217.02
8.0.220.0040.00417.07
8.0.210.0000.00717.04
8.0.200.0030.00316.98
8.0.190.0040.00417.12
8.0.180.0000.01317.05
8.0.170.0000.00817.11
8.0.160.0070.00016.96
8.0.150.0050.00316.86
8.0.140.0030.00416.90
8.0.130.0060.00013.35
8.0.120.0080.00016.96
8.0.110.0000.00816.94
8.0.100.0000.00716.90
8.0.90.0030.00416.86
8.0.80.0090.00616.97
8.0.70.0040.00416.92
8.0.60.0030.00416.92
8.0.50.0040.00417.02
8.0.30.0080.01117.25
8.0.20.0100.01017.40
8.0.10.0000.00716.96
8.0.00.0150.00917.06
7.4.330.0000.00515.10
7.4.320.0060.00016.83
7.4.300.0060.00016.81
7.4.290.0040.00416.61
7.4.280.0000.00616.75
7.4.270.0030.00316.80
7.4.260.0070.00416.84
7.4.250.0040.00416.78
7.4.240.0040.00416.68
7.4.230.0000.00716.91
7.4.220.0110.00716.73
7.4.210.0060.01116.84
7.4.200.0000.00716.55
7.4.190.0000.00716.70
7.4.160.0080.00816.60
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0090.00916.76
7.4.120.0070.01016.66
7.4.110.0030.01316.68
7.4.100.0070.01016.68
7.4.90.0130.01016.85
7.4.80.0100.01219.39
7.4.70.0130.00316.62
7.4.60.0060.00916.60
7.4.50.0050.00316.75
7.4.40.0090.00322.77
7.4.30.0120.00316.69
7.4.00.0110.00715.18
7.3.330.0060.00013.16
7.3.320.0050.00013.31
7.3.310.0000.00816.25
7.3.300.0040.00416.40
7.3.290.0100.01016.43
7.3.280.0120.00716.44
7.3.270.0080.00917.40
7.3.260.0060.01216.65
7.3.250.0130.01216.58
7.3.240.0110.00616.73
7.3.230.0100.00716.80
7.3.210.0070.01016.55
7.3.200.0060.01019.39
7.3.190.0100.00716.43
7.3.180.0040.01216.59
7.3.170.0120.00316.75
7.3.160.0170.00616.65
7.3.120.0090.00715.02
7.3.110.0100.00714.88
7.3.100.0030.00915.08
7.3.90.0040.00815.03
7.3.80.0060.00515.10
7.3.70.0010.01015.16
7.3.60.0100.00414.83
7.3.50.0050.01014.87
7.3.40.0070.00714.81
7.3.30.0060.00814.99
7.3.20.0110.00616.74
7.3.10.0060.01016.93
7.3.00.0120.00316.82
7.2.330.0060.01216.80
7.2.320.0150.00916.74
7.2.310.0140.00316.82
7.2.300.0100.00616.70
7.2.290.0080.00816.78
7.2.250.0060.00915.32
7.2.240.0030.01414.99
7.2.230.0090.00815.12
7.2.220.0020.00915.14
7.2.210.0100.00615.19
7.2.200.0090.00415.33
7.2.190.0070.00915.20
7.2.180.0090.00415.15
7.2.170.0040.01115.29
7.2.160.0030.00915.18
7.2.150.0100.00516.96
7.2.140.0110.00417.07
7.2.130.0070.00916.94
7.2.120.0030.00917.11
7.2.110.0050.01116.95
7.2.100.0070.00717.14
7.2.90.0090.00817.09
7.2.80.0060.00917.30
7.2.70.0100.00817.02
7.2.60.0060.01117.05
7.2.50.0000.01417.00
7.2.40.0050.01017.13
7.2.30.0040.01317.08
7.2.20.0050.00917.09
7.2.10.0030.01217.13
7.2.00.0090.00618.03
7.1.330.0060.00615.94
7.1.320.0040.01016.16
7.1.310.0060.00815.97
7.1.300.0040.00715.89
7.1.290.0120.00216.00
7.1.280.0060.01015.98
7.1.270.0020.01315.99
7.1.260.0050.00615.96
7.1.250.0070.00715.98
7.1.200.0070.00715.92
7.1.100.0000.01318.36
7.1.70.0040.00417.27
7.1.60.0110.01419.82
7.1.50.0040.02117.23
7.1.00.0100.07022.28
7.0.200.0040.00416.95
7.0.140.0030.07022.11
7.0.60.0130.06719.94
7.0.50.0100.05717.86
7.0.40.0030.05320.26
7.0.30.0200.04320.21
7.0.20.0430.06320.07
7.0.10.0170.07720.34
7.0.00.0100.08320.10
5.6.280.0070.07020.91
5.6.210.0130.08020.61
5.6.200.0030.07718.16
5.6.190.0070.08020.49
5.6.180.3970.04720.55
5.6.170.0400.07720.54
5.6.160.0070.04320.54
5.6.150.0030.04318.28
5.6.140.0030.03718.28
5.6.130.0070.08018.17
5.6.120.0070.04321.03
5.6.110.0070.08321.01
5.6.100.0100.07321.00
5.6.90.0070.08720.95
5.6.80.0030.04020.40
5.6.70.0030.04020.37
5.5.350.0170.08320.40
5.5.340.0100.05718.08
5.5.330.0200.06020.42
5.5.320.0370.06020.28
5.5.310.0130.04320.35
5.5.300.0030.08318.08
5.5.290.0070.07717.91
5.5.280.0000.04320.73
5.5.270.0030.09020.67
5.5.260.0070.03720.89
5.5.250.0170.07320.58
5.5.240.0130.06320.12
5.4.450.0300.05019.49
5.4.440.0230.04719.38
5.4.430.0300.03019.47
5.4.420.0270.07019.27
5.4.410.0230.04719.20
5.4.400.0270.06319.32
5.4.390.0200.07719.14
5.4.380.0270.06319.24
5.4.370.0300.04319.20
5.4.360.0300.07018.99
5.4.350.0330.03018.85
5.4.340.0270.06318.98
5.4.320.0300.07019.31
5.4.310.0300.07019.13
5.4.300.0370.04019.08
5.4.290.0230.03719.13
5.4.280.0170.04318.86
5.4.270.0370.06319.16
5.4.260.0300.03019.30
5.4.250.0230.05719.15
5.4.240.0300.06319.30
5.4.230.0370.03719.20
5.4.220.0370.06319.21
5.4.210.0270.05319.15
5.4.200.0300.03318.98
5.4.190.0370.06019.20
5.4.180.0300.07718.86
5.4.170.0270.03318.86
5.4.160.0300.05319.13
5.4.150.0330.06019.14
5.4.140.0270.03716.50
5.4.130.0270.07016.55
5.4.120.0200.04016.34
5.4.110.0330.06016.37
5.4.100.0270.03716.56
5.4.90.0300.06716.45
5.4.80.0430.03716.39
5.4.70.0370.06316.17
5.4.60.0270.06316.43
5.4.50.0300.04716.52
5.4.40.0230.03716.36
5.4.30.0270.03016.25
5.4.20.0230.05316.50
5.4.10.0400.06016.23
5.4.00.0270.04715.96
5.3.290.0270.06714.66
5.3.280.0230.05014.59
5.3.270.0200.04314.62
5.3.260.0300.07014.70
5.3.250.0230.03714.82
5.3.240.0400.04314.67
5.3.230.0330.04314.50
5.3.220.0300.06714.71
5.3.210.0470.03714.72
5.3.200.0370.07014.47
5.3.190.0300.06314.63
5.3.180.0230.07714.67
5.3.170.0230.07714.52
5.3.160.0270.03714.55
5.3.150.0270.07314.67
5.3.140.0400.06014.71
5.3.130.0400.06014.45
5.3.120.0270.05314.51
5.3.110.0300.04014.51
5.3.100.0330.06714.10
5.3.90.0300.03714.00
5.3.80.0330.03314.01
5.3.70.0270.07014.23
5.3.60.0430.02314.11
5.3.50.0300.05713.84
5.3.40.0270.05713.98
5.3.30.0300.06313.82
5.3.20.0270.06313.77
5.3.10.0300.03313.56
5.3.00.0300.06713.75
5.2.170.0230.03312.11
5.2.160.0170.06012.11
5.2.150.0200.03712.11
5.2.140.0230.05712.11
5.2.130.0230.05012.11
5.2.120.0270.05312.11
5.2.110.0200.05312.11
5.2.100.0200.04012.11
5.2.90.0200.06012.11
5.2.80.0200.04012.11
5.2.70.0170.03712.11
5.2.60.0130.03312.11
5.2.50.0200.05012.11
5.2.40.0170.04012.11
5.2.30.0230.04712.11
5.2.20.0200.05712.11
5.2.10.0200.06012.11
5.2.00.0200.03712.11
5.1.60.0170.03312.11
5.1.50.0170.04712.11
5.1.40.0270.04312.11
5.1.30.0170.04712.11
5.1.20.0330.04012.11
5.1.10.0170.05012.11
5.1.00.0230.03712.11
5.0.50.0100.02312.11
5.0.40.0070.02712.11
5.0.30.0100.04712.11
5.0.20.0070.04012.11
5.0.10.0170.03012.11
5.0.00.0100.05712.11
4.4.90.0070.03312.11
4.4.80.0070.02712.11
4.4.70.0130.02712.11
4.4.60.0070.02012.11
4.4.50.0130.03012.11
4.4.40.0030.06012.11
4.4.30.0070.02012.11
4.4.20.0130.03012.11
4.4.10.0130.01712.11
4.4.00.0100.05312.11
4.3.110.0100.02012.11
4.3.100.0100.01712.11
4.3.90.0070.02312.11
4.3.80.0130.02712.11
4.3.70.0070.03012.11
4.3.60.0070.03312.11
4.3.50.0070.03712.11
4.3.40.0130.04312.11
4.3.30.0070.03312.11
4.3.20.0100.01312.11
4.3.10.0000.02012.11
4.3.00.0000.02012.11

preferences:
47.55 ms | 400 KiB | 5 Q