3v4l.org

run code in 300+ PHP versions simultaneously
<?php function return_block_links($n = null, $options = null) { $numargs = func_num_args(); $args = func_get_args(); //Проверяем аргументы для старой сигнатуры вызова if (2 == $numargs) { // return_links($n, $options) if (!is_array($args[1])) { // return_links($n, $offset) - deprecated! $options = null; } } elseif (2 < $numargs) { // return_links($n, $offset, $options) - deprecated! if (!is_array($options)) { $options = $args[3]; } } var_dump($n, $options); echo PHP_EOL; } return_block_links(); return_block_links(5); return_block_links(5, array('opts')); return_block_links(5,2); return_block_links(5,2,array('opts'));

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.0210.00016.75
8.3.50.0130.01221.99
8.3.40.0170.00318.96
8.3.30.0180.00318.94
8.3.20.0060.01220.29
8.3.10.0060.01223.63
8.3.00.0160.00319.38
8.2.180.0140.00718.41
8.2.170.0040.01622.96
8.2.160.0190.00320.46
8.2.150.0070.01124.18
8.2.140.0070.01124.66
8.2.130.0120.00626.16
8.2.120.0150.00422.27
8.2.110.0170.00322.07
8.2.100.0060.00617.97
8.2.90.0000.00819.17
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0000.00818.03
8.2.50.0030.00618.22
8.2.40.0040.00420.55
8.2.30.0050.00319.32
8.2.20.0030.00617.82
8.2.10.0050.00318.04
8.2.00.0050.00317.78
8.1.280.0150.00725.92
8.1.270.0100.01023.99
8.1.260.0200.00026.35
8.1.250.0100.00028.09
8.1.240.0090.00022.50
8.1.230.0040.00720.97
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0040.00417.10
8.1.180.0000.00720.03
8.1.170.0060.00318.64
8.1.160.0070.00018.89
8.1.150.0040.00420.13
8.1.140.0070.00317.34
8.1.130.0030.00317.79
8.1.120.0070.00017.36
8.1.110.0040.00417.47
8.1.100.0040.00417.36
8.1.90.0070.00017.50
8.1.80.0000.00817.35
8.1.70.0040.00417.33
8.1.60.0030.00517.63
8.1.50.0000.00817.41
8.1.40.0000.01017.51
8.1.30.0040.00417.51
8.1.20.0000.00817.57
8.1.10.0000.00717.44
8.1.00.0030.00617.40
8.0.300.0000.00818.77
8.0.290.0080.00016.58
8.0.280.0040.00418.36
8.0.270.0040.00417.27
8.0.260.0040.00417.31
8.0.250.0030.00416.98
8.0.240.0000.00716.89
8.0.230.0050.00217.05
8.0.220.0000.00716.96
8.0.210.0030.00316.98
8.0.200.0030.00517.03
8.0.190.0000.00816.88
8.0.180.0030.00316.96
8.0.170.0040.00416.87
8.0.160.0040.00416.87
8.0.150.0040.00416.79
8.0.140.0000.00916.78
8.0.130.0000.00513.32
8.0.120.0040.00416.81
8.0.110.0070.00016.79
8.0.100.0040.00416.73
8.0.90.0040.00417.00
8.0.80.0090.01217.01
8.0.70.0040.00417.00
8.0.60.0040.00416.99
8.0.50.0040.00416.73
8.0.30.0120.00816.96
8.0.20.0100.00817.43
8.0.10.0080.00016.87
8.0.00.0040.01416.82
7.4.330.0030.00315.13
7.4.320.0000.00816.65
7.4.300.0040.00416.45
7.4.290.0030.00316.55
7.4.280.0000.00816.60
7.4.270.0000.00716.56
7.4.260.0030.00316.52
7.4.250.0020.00516.61
7.4.240.0040.00416.58
7.4.230.0000.00716.54
7.4.220.0130.00616.62
7.4.210.0030.01116.58
7.4.200.0000.00816.68
7.4.190.0050.00316.55
7.4.160.0090.00616.36
7.4.150.0130.00617.40
7.4.140.0070.01217.86
7.4.130.0130.00316.60
7.4.120.0080.01016.52
7.4.110.0110.00716.68
7.4.100.0090.00916.64
7.4.90.0150.00316.57
7.4.80.0080.01419.39
7.4.70.0000.01716.57
7.4.60.0110.00616.47
7.4.50.0040.00416.30
7.4.40.0030.01316.45
7.4.30.0110.01216.68
7.4.00.0050.01215.03
7.3.330.0060.00013.39
7.3.320.0000.00513.38
7.3.310.0050.00216.33
7.3.300.0070.00016.44
7.3.290.0090.00616.31
7.3.280.0100.00816.36
7.3.270.0160.00417.40
7.3.260.0060.01216.62
7.3.250.0120.00616.51
7.3.240.0070.01116.71
7.3.230.0080.00816.43
7.3.210.0030.01416.47
7.3.200.0080.00819.39
7.3.190.0060.01516.57
7.3.180.0180.00016.47
7.3.170.0040.01316.46
7.3.160.0080.00716.57
7.3.120.0050.01214.87
7.3.110.0110.00714.76
7.3.100.0030.00914.67
7.3.90.0030.00614.81
7.3.80.0080.00415.11
7.3.70.0040.00414.77
7.3.60.0110.00414.70
7.3.50.0060.00314.97
7.3.40.0040.01114.96
7.3.30.0090.00614.93
7.3.20.0110.00416.74
7.3.10.0000.01416.64
7.3.00.0120.00016.44
7.2.330.0150.00416.62
7.2.320.0120.00616.72
7.2.310.0030.01516.68
7.2.300.0170.00416.47
7.2.290.0130.01016.48
7.2.250.0110.00714.82
7.2.240.0000.01915.15
7.2.230.0070.00715.21
7.2.220.0090.00314.94
7.2.210.0030.00714.77
7.2.200.0000.01415.27
7.2.190.0040.01115.05
7.2.180.0060.00914.73
7.2.170.0030.01215.10
7.2.00.0040.01119.41
7.1.330.0060.00915.77
7.1.320.0070.01015.79
7.1.310.0070.00716.10
7.1.300.0040.01115.83
7.1.290.0130.00315.69
7.1.280.0100.00715.53
7.1.270.0040.00815.62
7.1.260.0030.00715.80
7.1.100.0070.00718.19
7.1.70.0160.00317.24
7.1.60.0140.01019.46
7.1.50.1040.01614.61
7.1.00.0030.07322.28
7.0.200.0040.00416.72
7.0.140.0030.07322.07
7.0.100.0030.05319.96
7.0.90.0500.07319.82
7.0.80.0400.07019.91
7.0.70.0370.07719.88
7.0.60.0470.07719.84
7.0.50.0370.05720.16
7.0.40.0070.08319.98
7.0.30.0100.07720.06
7.0.20.0100.08320.09
7.0.10.0030.08720.02
7.0.00.0030.08320.00
5.6.280.0070.07020.87
5.6.250.0130.03320.55
5.6.240.0100.06020.55
5.6.230.0030.07720.52
5.6.220.0130.05020.57
5.6.210.0100.08020.44
5.6.200.0100.08721.04
5.6.190.0070.08320.98
5.6.180.0100.05321.03
5.6.170.0070.07720.89
5.6.160.0130.07721.07
5.6.150.0130.07321.00
5.6.140.0070.05020.96
5.6.130.0000.07321.03
5.6.120.0000.08721.09
5.6.110.0100.06320.95
5.6.100.0030.04021.02
5.6.90.0070.07021.02
5.6.80.0030.08320.42
5.6.70.0070.04020.34
5.6.60.0130.05320.39
5.6.50.0170.04720.38
5.6.40.0170.06720.25
5.6.30.0200.07320.32
5.6.20.0070.07020.42
5.6.10.0070.07320.24
5.6.00.0070.07020.32
5.5.380.0130.07720.34
5.5.370.0100.07720.32
5.5.360.0070.06720.36
5.5.350.0000.06320.38
5.5.340.0100.07720.79
5.5.330.0130.06020.73
5.5.320.0070.08320.82
5.5.310.0070.08720.75
5.5.300.0070.08020.71
5.5.290.0070.07720.82
5.5.280.0100.06320.81
5.5.270.0070.04720.59
5.5.260.0100.04320.86
5.5.250.0100.07320.69
5.5.240.0070.07720.16
5.5.230.0030.08320.09
5.5.220.0130.07320.21
5.5.210.0170.05720.21
5.5.200.0100.06320.18
5.5.190.0070.08020.23
5.5.180.0130.06720.08
5.5.160.0130.07320.15
5.5.150.0070.04720.16
5.5.140.0000.04720.20
5.5.130.0130.07020.10
5.5.120.0100.07020.18
5.5.110.0170.07320.09
5.5.100.0030.05320.11
5.5.90.0070.07319.99
5.5.80.0130.05720.05
5.5.70.0100.07020.11
5.5.60.0100.07020.09
5.5.50.0100.06319.95
5.5.40.0200.07019.96
5.5.30.0100.07320.07
5.5.20.0070.06020.04
5.5.10.0130.06719.99
5.5.00.0170.07019.93
5.4.450.0100.07319.37
5.4.440.0070.08019.56
5.4.430.0030.06019.36
5.4.420.0100.07319.51
5.4.410.0030.04019.10
5.4.400.0030.08019.23
5.4.390.0200.06719.11
5.4.380.0070.07319.13
5.4.370.0130.06318.91
5.4.360.0000.08019.03
5.4.350.0070.07319.23
5.4.340.0100.05718.88
5.4.320.0070.07318.88
5.4.310.0130.05319.04
5.4.300.0130.07018.88
5.4.290.0070.07019.18
5.4.280.0030.08018.95
5.4.270.0170.06319.18
5.4.260.0100.07019.16
5.4.250.0070.06719.12
5.4.240.0100.08019.04
5.4.230.0100.07318.94
5.4.220.0130.06319.12
5.4.210.0130.06319.12
5.4.200.0070.07019.13
5.4.190.0030.07319.13
5.4.180.0100.07319.02
5.4.170.0170.06718.84
5.4.160.0100.08018.83
5.4.150.0100.07319.12
5.4.140.0070.07716.43
5.4.130.0070.07016.38
5.4.120.0070.07716.19
5.4.110.0100.07016.43
5.4.100.0070.07716.47
5.4.90.0170.06316.47
5.4.80.0130.06016.26
5.4.70.0070.06716.32
5.4.60.0100.06716.32
5.4.50.0070.07016.34
5.4.40.0030.07316.30
5.4.30.0100.07016.40
5.4.20.0030.07716.46
5.4.10.0030.07716.37
5.4.00.0070.07715.86
5.3.290.0030.08014.79
5.3.280.0070.06014.60
5.3.270.0130.07014.54
5.3.260.0070.07314.63
5.3.250.0130.06714.58
5.3.240.0070.07314.54
5.3.230.0130.07014.58
5.3.220.0030.08014.71
5.3.210.0100.07314.54
5.3.200.0100.06714.50
5.3.190.0070.06314.63
5.3.180.0070.07714.54
5.3.170.0030.07714.59
5.3.160.0130.07014.57
5.3.150.0030.08014.54
5.3.140.0070.08014.57
5.3.130.0030.06014.52
5.3.120.0030.05014.52
5.3.110.0200.06714.47
5.3.100.0100.07314.03
5.3.90.0000.07714.11
5.3.80.0170.06014.16
5.3.70.0100.03314.08
5.3.60.0030.07713.99
5.3.50.0070.03713.88
5.3.40.0070.07013.86
5.3.30.0070.07013.83
5.3.20.0030.04013.76
5.3.10.0000.06013.66
5.3.00.0070.03013.62
5.2.170.0070.06011.04
5.2.160.0000.03711.29
5.2.150.0070.05311.23
5.2.140.0030.06011.28
5.2.130.0070.03011.09
5.2.120.0070.05011.23
5.2.110.0030.02311.16
5.2.100.0030.05310.98
5.2.90.0000.03710.99
5.2.80.0000.04011.14
5.2.70.0070.05711.21
5.2.60.0070.03011.04
5.2.50.0100.02310.95
5.2.40.0100.03711.00
5.2.30.0000.03711.07
5.2.20.0000.03010.95
5.2.10.0070.02710.88
5.2.00.0100.02010.72
5.1.60.0000.03010.08
5.1.50.0000.0279.85
5.1.40.0000.0309.86
5.1.30.0000.02710.43
5.1.20.0100.01710.41
5.1.10.0000.02310.06
5.1.00.0030.04310.14
5.0.50.0000.0238.43
5.0.40.0070.0308.54
5.0.30.0100.0308.28
5.0.20.0000.0208.26
5.0.10.0000.0208.18
5.0.00.0030.0278.25
4.4.90.0000.0178.00
4.4.80.0000.0178.00
4.4.70.0000.0178.00
4.4.60.0000.0278.00
4.4.50.0000.0238.00
4.4.40.0000.0238.00
4.4.30.0000.0178.00
4.4.20.0070.0308.00
4.4.10.0000.0138.00
4.4.00.0030.0278.00
4.3.110.0030.0338.00
4.3.100.0000.0278.00
4.3.90.0000.0178.00
4.3.80.0000.0408.00
4.3.70.0070.0178.00
4.3.60.0030.0178.00
4.3.50.0030.0138.00
4.3.40.0000.0508.00
4.3.30.0000.0278.00
4.3.20.0000.0308.00
4.3.10.0000.0178.00
4.3.00.0030.0108.00

preferences:
45.42 ms | 401 KiB | 5 Q