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[2]; } } 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.40.0100.00618.67
8.3.30.0040.01119.05
8.3.20.0110.00720.29
8.3.10.0000.00723.53
8.3.00.0120.00619.38
8.2.170.0030.01222.96
8.2.160.0130.00720.57
8.2.150.0090.00024.18
8.2.140.0150.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00622.01
8.2.110.0070.01022.25
8.2.100.0040.00717.91
8.2.90.0040.00417.59
8.2.80.0030.00518.77
8.2.70.0000.00817.50
8.2.60.0040.00417.75
8.2.50.0040.00417.75
8.2.40.0040.00419.48
8.2.30.0000.00718.38
8.2.20.0040.00417.67
8.2.10.0040.00418.09
8.2.00.0030.00717.80
8.1.270.0030.01623.91
8.1.260.0100.01026.35
8.1.250.0100.01028.09
8.1.240.0060.00323.88
8.1.230.0050.00517.83
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0080.00317.00
8.1.180.0000.01018.10
8.1.170.0020.00518.77
8.1.160.0040.00421.90
8.1.150.0000.00718.64
8.1.140.0040.00417.46
8.1.130.0070.00017.88
8.1.120.0080.00017.44
8.1.110.0040.00417.42
8.1.100.0060.00617.48
8.1.90.0040.00417.41
8.1.80.0090.00017.49
8.1.70.0030.00317.46
8.1.60.0030.00617.62
8.1.50.0000.00817.46
8.1.40.0040.00417.42
8.1.30.0030.00517.65
8.1.20.0000.00817.56
8.1.10.0040.00417.55
8.1.00.0030.00617.53
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00518.32
8.0.270.0030.00317.30
8.0.260.0030.00317.25
8.0.250.0040.00416.82
8.0.240.0040.00416.95
8.0.230.0070.00017.02
8.0.220.0000.00716.82
8.0.210.0070.00016.80
8.0.200.0070.00016.89
8.0.190.0040.00416.83
8.0.180.0000.00716.98
8.0.170.0050.00216.98
8.0.160.0000.00716.88
8.0.150.0030.00516.88
8.0.140.0040.00416.76
8.0.130.0000.00713.33
8.0.120.0060.00316.86
8.0.110.0000.00716.84
8.0.100.0050.00216.89
8.0.90.0070.00016.81
8.0.80.0090.01216.82
8.0.70.0070.00016.85
8.0.60.0040.00416.77
8.0.50.0000.00816.74
8.0.30.0130.00717.18
8.0.20.0130.01117.40
8.0.10.0000.00716.87
8.0.00.0080.01416.64
7.4.330.0000.00715.00
7.4.320.0020.00516.52
7.4.300.0030.00316.61
7.4.290.0070.00016.56
7.4.280.0030.00316.51
7.4.270.0070.00016.62
7.4.260.0030.00316.58
7.4.250.0040.00416.37
7.4.240.0020.00516.48
7.4.230.0000.00716.70
7.4.220.0170.01016.54
7.4.210.0060.01116.55
7.4.200.0000.00716.48
7.4.190.0000.00716.73
7.4.160.0100.01316.43
7.4.150.0110.00717.40
7.4.140.0130.00317.86
7.4.130.0050.01116.56
7.4.120.0100.00916.41
7.4.110.0090.00916.50
7.4.100.0100.01416.48
7.4.90.0030.01716.65
7.4.80.0100.01019.39
7.4.70.0090.00916.63
7.4.60.0130.01016.39
7.4.50.0000.00816.62
7.4.40.0080.00816.57
7.4.30.0080.00816.36
7.4.00.0030.01415.02
7.3.330.0030.00313.45
7.3.320.0020.00213.32
7.3.310.0030.00316.34
7.3.300.0070.00016.39
7.3.290.0090.00616.24
7.3.280.0090.00716.31
7.3.270.0120.00617.40
7.3.260.0090.00916.34
7.3.250.0060.01316.28
7.3.240.0070.01016.41
7.3.230.0160.00016.39
7.3.210.0110.00616.59
7.3.200.0070.01019.39
7.3.190.0150.00616.42
7.3.180.0080.00816.44
7.3.170.0090.00916.38
7.3.160.0070.00716.36
7.3.120.0070.01015.05
7.3.110.0070.01014.83
7.3.100.0110.00314.76
7.3.90.0070.00714.68
7.3.80.0080.00814.97
7.3.70.0030.01014.94
7.3.60.0110.00414.82
7.3.50.0050.00714.71
7.3.40.0080.00514.76
7.3.30.0030.00814.82
7.3.20.0020.01216.68
7.3.10.0030.01216.77
7.3.00.0080.00516.60
7.2.330.0040.01316.40
7.2.320.0110.00716.82
7.2.310.0100.00616.40
7.2.300.0030.01716.70
7.2.290.0080.00816.32
7.2.250.0020.01314.74
7.2.240.0110.00615.00
7.2.230.0060.00915.02
7.2.220.0040.00914.93
7.2.210.0050.00815.38
7.2.200.0030.01115.11
7.2.190.0050.01014.90
7.2.180.0080.00514.86
7.2.170.0100.00515.12
7.2.160.0030.01315.08
7.2.150.0110.00416.84
7.2.140.0040.01116.73
7.2.130.0070.00716.62
7.2.120.0040.01117.03
7.2.110.0030.01016.99
7.2.100.0070.01016.52
7.2.90.0060.01017.13
7.2.80.0000.01216.92
7.2.70.0070.00716.98
7.2.60.0120.00516.91
7.2.50.0100.00516.85
7.2.40.0090.00616.79
7.2.30.0100.00617.02
7.2.20.0060.00616.93
7.2.10.0080.00516.89
7.2.00.0030.00818.04
7.1.330.0050.00715.75
7.1.320.0060.00915.89
7.1.310.0070.00715.72
7.1.300.0080.00515.77
7.1.290.0050.01015.91
7.1.280.0060.00615.69
7.1.270.0050.00515.77
7.1.260.0040.01115.66
7.1.250.0110.00415.75
7.1.200.0040.00815.79
7.1.100.0030.00618.05
7.1.70.0080.00017.04
7.1.60.0060.00919.46
7.1.50.0040.01817.07
7.1.00.0000.07722.45
7.0.200.0030.00316.80
7.0.140.0030.07022.02
7.0.60.0200.07719.94
7.0.50.0100.07017.74
7.0.40.0100.06020.02
7.0.30.0300.08320.06
7.0.20.0370.07020.12
7.0.10.0070.07720.17
7.0.00.0030.05020.35
5.6.280.0070.06720.79
5.6.210.0070.08020.55
5.6.200.0000.04718.27
5.6.190.0030.09020.57
5.6.180.0330.07320.63
5.6.170.0300.07320.63
5.6.160.0070.04020.56
5.6.150.0070.05318.15
5.6.140.0070.07718.14
5.6.130.0070.08018.28
5.6.120.0100.08321.02
5.6.110.0170.06321.05
5.6.100.0100.05721.02
5.6.90.0030.04321.03
5.6.80.0030.04320.52
5.5.350.0230.07320.45
5.5.340.0030.05317.96
5.5.330.0000.05320.21
5.5.320.0030.04020.42
5.5.310.0300.08320.32
5.5.300.0100.08017.98
5.5.290.0170.06717.98
5.5.280.0130.06720.80
5.5.270.0030.06720.96
5.5.260.0070.08020.68
5.5.250.0100.07720.80
5.5.240.0100.07020.24
5.4.450.0730.06019.56
5.4.440.0700.06019.17
5.4.430.0570.06019.63
5.4.420.0170.06019.16
5.4.410.0730.05719.35
5.4.400.0030.07019.06
5.4.390.0130.07019.23
5.4.380.0270.04018.70
5.4.370.0070.05718.66
5.4.360.0200.04318.80
5.4.350.0130.05318.53
5.4.340.0170.05018.63
5.4.320.0080.04012.50
5.4.310.0060.03812.50
5.4.300.0080.04412.51
5.4.290.0110.04912.50
5.4.280.0120.05112.40
5.4.270.0110.05412.40
5.4.260.0120.04912.39
5.4.250.0030.04812.40
5.4.240.0170.08712.40
5.4.230.0130.07212.39
5.4.220.0050.05312.39
5.4.210.0060.04112.39
5.4.200.0040.04112.39
5.4.190.0060.04012.39
5.4.180.0130.03812.39
5.4.170.0060.04112.39
5.4.160.0110.05612.39
5.4.150.0130.05012.39
5.4.140.0130.05212.07
5.4.130.0070.04812.06
5.4.120.0070.05212.02
5.4.110.0090.06712.02
5.4.100.0150.07012.01
5.4.90.0110.05512.01
5.4.80.0140.06812.01
5.4.70.0110.06212.01
5.4.60.0070.05212.01
5.4.50.0060.05112.01
5.4.40.0100.05112.00
5.4.30.0120.04312.00
5.4.20.0180.06711.99
5.4.10.0090.05211.99
5.4.00.0100.04811.48
5.3.290.0100.05012.80
5.3.280.0110.05412.70
5.3.270.0180.09412.72
5.3.260.0180.05112.72
5.3.250.0120.04112.72
5.3.240.0050.05312.72
5.3.230.0040.04912.71
5.3.220.0050.04112.68
5.3.210.0090.04012.68
5.3.200.0100.03512.68
5.3.190.0080.03812.68
5.3.180.0080.05012.68
5.3.170.0110.04912.67
5.3.160.0160.06312.68
5.3.150.0150.04512.67
5.3.140.0080.05412.66
5.3.130.0090.05512.66
5.3.120.0080.05512.66
5.3.110.0070.05812.66
5.3.100.0200.09312.12
5.3.90.0080.04912.10
5.3.80.0100.04812.09
5.3.70.0080.04912.09
5.3.60.0060.05212.07
5.3.50.0060.05112.02
5.3.40.0100.04912.02
5.3.30.0040.04511.98
5.3.20.0040.04711.77
5.3.10.0070.04511.73
5.3.00.0110.05711.72
5.2.170.0090.0339.21
5.2.160.0060.0329.22
5.2.150.0160.0579.22
5.2.140.0050.0409.22
5.2.130.0070.0359.17
5.2.120.0030.0339.18
5.2.110.0080.0389.18
5.2.100.0080.0349.18
5.2.90.0080.0279.18
5.2.80.0080.0399.17
5.2.70.0030.0369.17
5.2.60.0060.0329.13
5.2.50.0060.0329.09
5.2.40.0020.0359.07
5.2.30.0050.0369.05
5.2.20.0070.0309.03
5.2.10.0080.0328.94
5.2.00.0060.0328.80
5.1.60.0040.0258.09
5.1.50.0050.0258.08
5.1.40.0040.0258.07
5.1.30.0060.0268.41
5.1.20.0050.0268.43
5.1.10.0050.0308.16
5.1.00.0060.0278.16
5.0.50.0060.0216.64
5.0.40.0060.0216.50
5.0.30.0030.0316.32
5.0.20.0030.0206.28
5.0.10.0050.0196.27
5.0.00.0040.0306.25
4.4.90.0030.0164.78
4.4.80.0040.0144.76
4.4.70.0060.0204.76
4.4.60.0050.0164.75
4.4.50.0050.0154.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0050.0144.85
4.4.10.0020.0174.85
4.4.00.0020.0264.76
4.3.110.0010.0174.67
4.3.100.0020.0214.66
4.3.90.0020.0164.63
4.3.80.0040.0254.58
4.3.70.0030.0154.63
4.3.60.0040.0144.63
4.3.50.0020.0244.63
4.3.40.0020.0384.54
4.3.30.0090.0303.30
4.3.20.0040.0283.28
4.3.10.0020.0263.24
4.3.00.0130.02311.52

preferences:
45.24 ms | 400 KiB | 5 Q