3v4l.org

run code in 300+ PHP versions simultaneously
<?php function awesome(...$arrays) { if (!is_array($arrays)) return false; $merged = array_shift($arrays); print_r($arrays); //if (sizeof($arrays) === 1) return array_shift($arrays); //$merged = } awesome(array('A', 'B'));

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.0040.01416.75
8.3.50.0130.00822.93
8.3.40.0060.01218.70
8.3.30.0070.00718.82
8.3.20.0040.00420.21
8.3.10.0060.00323.50
8.3.00.0030.00619.26
8.2.180.0110.00616.75
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00320.96
8.2.110.0080.00020.48
8.2.100.0000.01117.72
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0050.00318.03
8.2.50.0080.00318.07
8.2.40.0000.00918.09
8.2.30.0000.00717.93
8.2.20.0000.00817.64
8.2.10.0050.00218.05
8.2.00.0040.00417.66
8.1.280.0120.00925.92
8.1.270.0000.00823.83
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00922.13
8.1.230.0070.00422.07
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.55
8.1.160.0030.00322.00
8.1.150.0050.00318.88
8.1.140.0050.00517.49
8.1.130.0000.00717.72
8.1.120.0000.00717.47
8.1.110.0080.00017.37
8.1.100.0000.00717.36
8.1.90.0050.00217.41
8.1.80.0030.00517.42
8.1.70.0000.00717.38
8.1.60.0040.00417.61
8.1.50.0050.00317.56
8.1.40.0050.00317.46
8.1.30.0050.00317.57
8.1.20.0000.00817.64
8.1.10.0000.00817.60
8.1.00.0060.00317.47
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0050.00318.35
8.0.270.0080.00017.25
8.0.260.0000.00617.12
8.0.250.0000.00716.82
8.0.240.0040.00416.81
8.0.230.0060.00316.96
8.0.220.0070.00016.75
8.0.210.0040.00416.90
8.0.200.0000.00716.86
8.0.190.0040.00416.93
8.0.180.0050.00216.94
8.0.170.0040.00416.87
8.0.160.0000.00716.98
8.0.150.0070.00016.66
8.0.140.0080.00016.66
8.0.130.0030.00313.35
8.0.120.0000.00816.73
8.0.110.0040.00416.84
8.0.100.0030.00516.89
8.0.90.0030.00316.98
8.0.80.0150.00616.84
8.0.70.0040.00416.68
8.0.60.0070.00016.76
8.0.50.0000.00716.67
8.0.30.0100.01216.88
8.0.20.0110.00817.40
8.0.10.0000.00816.80
8.0.00.0120.00516.69
7.4.330.0050.00015.00
7.4.320.0000.00616.49
7.4.300.0030.00316.63
7.4.290.0000.00716.55
7.4.280.0040.00416.51
7.4.270.0000.00716.40
7.4.260.0040.00416.52
7.4.250.0040.00416.38
7.4.240.0000.00816.53
7.4.230.0030.00316.57
7.4.220.0100.00716.50
7.4.210.0030.01016.68
7.4.200.0000.00716.43
7.4.160.0120.00316.45
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0120.00816.41
7.4.120.0100.01016.48
7.4.110.0130.00316.50
7.4.100.0090.01216.70
7.4.90.0110.00616.57
7.4.80.0040.01319.39
7.4.70.0090.00916.32
7.4.60.0070.01016.45
7.4.50.0000.00416.43
7.4.40.0170.00516.46
7.4.30.0070.01016.44
7.4.00.0110.00714.91
7.3.330.0030.00313.23
7.3.320.0050.00013.03
7.3.310.0000.00716.19
7.3.300.0000.00716.12
7.3.290.0000.01416.28
7.3.280.0050.01216.24
7.3.270.0000.01617.40
7.3.260.0090.00916.69
7.3.250.0110.00616.37
7.3.240.0070.01316.45
7.3.230.0100.00716.39
7.3.210.0000.01616.20
7.3.200.0070.01019.39
7.3.190.0090.00616.47
7.3.180.0100.00616.48
7.3.170.0030.01216.31
7.3.160.0080.00816.25
7.3.120.0070.01314.77
7.3.110.0000.01414.67
7.3.100.0030.01314.64
7.3.90.0030.01214.60
7.3.80.0140.00415.04
7.3.70.0030.00914.49
7.3.60.0040.01114.80
7.3.50.0100.00314.86
7.3.40.0060.00914.75
7.3.30.0030.01014.81
7.3.20.0080.00416.69
7.3.10.0080.01216.55
7.3.00.0070.01016.58
7.2.330.0140.00316.65
7.2.320.0070.01016.68
7.2.310.0060.01516.37
7.2.300.0070.01016.72
7.2.290.0100.00616.73
7.2.250.0100.00615.12
7.2.240.0070.01314.84
7.2.230.0130.00614.96
7.2.220.0070.00715.12
7.2.210.0120.00615.17
7.2.200.0100.00314.89
7.2.190.0060.00914.99
7.2.180.0090.00614.84
7.2.170.0000.01415.15
7.2.130.0120.00716.58
7.2.120.0210.00416.73
7.2.110.0160.00416.77
7.2.100.0150.00716.79
7.2.90.0140.00716.73
7.2.80.0100.01316.49
7.2.70.0140.01716.80
7.2.60.0110.01216.88
7.2.50.0140.01416.74
7.2.40.0070.01516.66
7.2.30.0160.00916.45
7.2.20.0110.01116.70
7.2.10.0170.00316.62
7.2.00.0100.00617.58
7.1.330.0000.01515.96
7.1.320.0070.00715.87
7.1.310.0110.00315.73
7.1.300.0080.00415.71
7.1.290.0000.01515.90
7.1.280.0030.01015.77
7.1.270.0050.00815.76
7.1.260.0030.01015.73
7.1.250.0130.00315.54
7.1.200.0050.00515.68
7.1.100.0050.00318.32
7.1.70.0040.00817.12
7.1.60.0070.01419.46
7.1.50.0030.01716.96
7.1.00.0030.08022.31
7.0.200.0030.01016.67
7.0.140.0000.07722.13
7.0.60.0030.04020.02
7.0.50.0130.07017.88
7.0.40.0100.08720.11
7.0.30.0300.07320.04
7.0.20.0230.05320.15
7.0.10.0030.06020.33
7.0.00.0130.07020.23
5.6.280.0030.06721.13
5.6.210.0100.08320.61
5.6.200.0000.05718.12
5.6.190.0070.07720.63
5.6.180.0200.04320.63
5.6.170.0330.08320.47
5.6.160.0070.04020.55
5.6.150.0070.06718.16
5.6.140.0100.07718.17
5.6.130.0100.05018.23
5.6.120.0170.07021.02
5.6.110.0170.07720.96
5.6.100.0100.08320.89
5.6.90.0130.08020.96
5.6.80.0030.06020.29
5.6.70.4600.04020.38
5.5.350.0100.08720.43
5.5.340.0100.07717.98
5.5.330.0130.03320.40
5.5.320.0370.07720.20
5.5.310.0330.07020.53
5.5.300.0130.07317.98
5.5.290.0070.05317.92
5.5.280.0170.07720.77
5.5.270.0130.05720.64
5.5.260.0070.08320.86
5.5.250.0130.07720.75
5.5.240.0200.06720.16
5.4.450.0370.05019.47
5.4.440.0470.04019.41
5.4.430.0200.04319.52
5.4.420.0300.04019.32
5.4.410.0530.04319.43
5.4.400.0200.04019.00
5.4.390.0170.05019.25
5.4.380.0300.05018.59
5.4.370.0270.05718.53
5.4.360.0230.06018.52
5.4.350.0170.06018.69
5.4.340.0330.05018.79
5.4.320.0070.04012.51
5.4.310.0070.03812.51
5.4.300.0090.04612.52
5.4.290.0100.04912.51
5.4.280.0060.05212.41
5.4.270.0070.05312.41
5.4.260.0040.04412.40
5.4.250.0080.03912.41
5.4.240.0060.03712.40
5.4.230.0060.04712.40
5.4.220.0080.04312.39
5.4.210.0070.03612.39
5.4.200.0100.03412.40
5.4.190.0070.03512.39
5.4.180.0050.03812.39
5.4.170.0060.03612.40
5.4.160.0040.03712.40
5.4.150.0040.03612.39
5.4.140.0070.03512.09
5.4.130.0060.03412.06
5.4.120.0080.03212.03
5.4.110.0040.03612.02
5.4.100.0030.03712.03
5.4.90.0070.03512.03
5.4.80.0070.03512.03
5.4.70.0040.03612.02
5.4.60.0040.03712.02
5.4.50.0060.03512.02
5.4.40.0060.03512.02
5.4.30.0050.03512.01
5.4.20.0050.03512.00
5.4.10.0040.03512.01
5.4.00.0050.03711.50
5.3.290.0050.04012.80
5.3.280.0080.04612.71
5.3.270.0220.06912.72
5.3.260.0050.04212.72
5.3.250.0080.04112.71
5.3.240.0080.03812.72
5.3.230.0040.04512.71
5.3.220.0120.04812.68
5.3.210.0050.05712.68
5.3.200.0070.05912.68
5.3.190.0040.05012.68
5.3.180.0060.04912.67
5.3.170.0070.04712.67
5.3.160.0070.04812.68
5.3.150.0090.03312.68
5.3.140.0050.03612.66
5.3.130.0050.04412.66
5.3.120.0090.03612.66
5.3.110.0090.03512.66
5.3.100.0040.03812.13
5.3.90.0060.03612.11
5.3.80.0090.03312.09
5.3.70.0050.03712.09
5.3.60.0030.03912.08
5.3.50.0060.03612.02
5.3.40.0060.03712.02
5.3.30.0020.03911.98
5.3.20.0050.03811.76
5.3.10.0100.03311.73
5.3.00.0070.03611.71
5.2.170.0050.0319.22
5.2.160.0040.0319.21
5.2.150.0060.0309.21
5.2.140.0050.0319.21
5.2.130.0060.0299.17
5.2.120.0030.0319.18
5.2.110.0060.0289.18
5.2.100.0030.0309.18
5.2.90.0050.0299.18
5.2.80.0040.0309.18
5.2.70.0040.0309.17
5.2.60.0050.0319.12
5.2.50.0070.0289.09
5.2.40.0060.0369.07
5.2.30.0030.0319.05
5.2.20.0080.0349.04
5.2.10.0060.0368.95
5.2.00.0030.0298.80
5.1.60.0060.0318.09
5.1.50.0040.0338.08
5.1.40.0060.0318.07
5.1.30.0030.0378.42
5.1.20.0050.0258.44
5.1.10.0040.0258.16
5.1.00.0030.0268.16
5.0.50.0030.0206.64
5.0.40.0020.0206.50
5.0.30.0050.0306.31
5.0.20.0020.0216.29
5.0.10.0020.0216.25
5.0.00.0030.0316.24
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0010.0174.75
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0050.0234.71
4.4.30.0010.0224.76
4.4.20.0030.0154.84
4.4.10.0050.0144.85
4.4.00.0030.0314.76
4.3.110.0050.0204.67
4.3.100.0030.0174.67
4.3.90.0020.0164.64
4.3.80.0050.0214.59
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0010.0254.53
4.3.30.0020.0173.30
4.3.20.0020.0153.29
4.3.10.0010.0223.24
4.3.00.0030.01715.68

preferences:
43.7 ms | 401 KiB | 5 Q