3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd'); list(, $b, $c) = $arr; var_dump($b, $c); list(, , $c) = $arr; var_dump($c); list(, , $c, $d) = $arr; var_dump($c, $d); list(, , , $d) = $arr; var_dump($d);

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.1.130.0030.00317.55
8.1.120.0000.00717.43
8.1.110.0070.00017.42
8.1.100.0040.00417.33
8.1.90.0000.00717.41
8.1.80.0000.00717.41
8.1.70.0030.00317.36
8.1.60.0040.00417.52
8.1.50.0040.00417.53
8.1.40.0080.00017.46
8.1.30.0040.00417.57
8.1.20.0060.00317.48
8.1.10.0040.00417.53
8.1.00.0030.00517.36
8.0.260.0060.00017.20
8.0.250.0050.00216.89
8.0.240.0040.00416.74
8.0.230.0090.00016.95
8.0.220.0040.00416.80
8.0.210.0060.00016.74
8.0.200.0030.00316.77
8.0.190.0080.00016.75
8.0.180.0040.00416.85
8.0.170.0000.00716.87
8.0.160.0000.00716.83
8.0.150.0000.00716.81
8.0.140.0000.00716.78
8.0.130.0000.00713.29
8.0.120.0040.00416.82
8.0.110.0000.00716.87
8.0.100.0030.00716.88
8.0.90.0000.00816.80
8.0.80.0070.00716.83
8.0.70.0070.00016.77
8.0.60.0070.00016.81
8.0.50.0000.00716.76
8.0.30.0090.01017.10
8.0.20.0120.00917.40
8.0.10.0000.00716.96
8.0.00.0140.00316.83
7.4.330.0000.00515.08
7.4.320.0060.00016.54
7.4.300.0030.00316.57
7.4.290.0030.00316.54
7.4.280.0000.00716.50
7.4.270.0040.00416.43
7.4.260.0070.00016.46
7.4.250.0080.00016.41
7.4.240.0070.00016.37
7.4.230.0030.00316.33
7.4.220.0090.00616.57
7.4.210.0090.00616.43
7.4.200.0030.00316.36
7.4.160.0060.01316.64
7.4.150.0140.00817.40
7.4.140.0090.01017.86
7.4.130.0130.00416.37
7.4.120.0080.00916.39
7.4.110.0100.00716.36
7.4.100.0110.00616.32
7.4.90.0030.01316.45
7.4.80.0130.00419.39
7.4.70.0030.01416.53
7.4.60.0190.00516.42
7.4.50.0030.01316.30
7.4.40.0040.01316.56
7.4.30.0070.01016.51
7.4.00.0140.00314.72
7.3.330.0000.00513.04
7.3.320.0000.00512.98
7.3.310.0070.00016.23
7.3.300.0040.00416.23
7.3.290.0060.01016.23
7.3.280.0050.01116.18
7.3.270.0060.01217.40
7.3.260.0120.00516.44
7.3.250.0090.00816.26
7.3.240.0150.00616.29
7.3.230.0070.01016.40
7.3.210.0060.01016.16
7.3.200.0100.00716.61
7.3.190.0080.00916.26
7.3.180.0160.00016.23
7.3.170.0140.00816.22
7.3.160.0040.01416.34
7.2.330.0000.01716.61
7.2.320.0160.00616.41
7.2.310.0060.01216.59
7.2.300.0030.01316.50
7.2.290.0120.00416.31
7.2.60.0060.01016.66
7.1.200.0060.00615.54
7.1.70.0000.00716.66
7.1.60.0100.01419.90
7.1.00.0030.07322.43
7.0.200.0270.00314.73
7.0.70.0200.05319.95
7.0.60.0330.04019.90
7.0.50.0270.05020.34
7.0.40.0070.06720.35
7.0.30.0170.07320.33
7.0.20.0170.06020.36
7.0.10.0200.05020.24
7.0.00.0300.06320.33
5.6.280.0070.07020.89
5.6.220.0370.04020.57
5.6.210.0130.06020.69
5.6.200.0300.05721.02
5.6.190.0130.07721.05
5.6.180.0100.06021.00
5.6.170.0170.06021.15
5.6.160.0330.06021.15
5.6.150.0470.06721.00
5.6.140.0200.07721.00
5.6.130.0100.06320.99
5.6.120.0170.06321.09
5.6.110.0170.06321.07
5.6.100.0230.06721.18
5.6.90.0400.08020.97
5.6.80.0370.05720.53
5.6.70.0100.06320.36
5.6.60.0300.04720.49
5.6.50.0370.04720.54
5.6.40.0370.06320.32
5.6.30.0430.06020.41
5.6.20.0430.08020.46
5.6.10.0270.06020.53
5.6.00.0300.08320.41
5.5.360.0170.06320.48
5.5.350.0100.06320.47
5.5.340.0170.07720.85
5.5.330.0030.07320.94
5.5.320.0270.05020.68
5.5.310.0330.06720.88
5.5.300.0130.07320.93
5.5.290.0270.06020.90
5.5.280.0130.06720.81
5.5.270.0300.06320.75
5.5.260.0370.05320.88
5.5.250.0270.06720.61
5.5.240.0070.06320.30
5.5.230.0130.05720.29
5.5.220.0230.06320.31
5.5.210.0500.05320.26
5.5.200.0200.06320.17
5.5.190.0400.04720.32
5.5.180.0230.07020.25
5.5.160.0270.06720.16
5.5.150.0330.07020.16
5.5.140.0200.05020.24
5.5.130.0230.06720.29
5.5.120.0170.06020.25
5.5.110.0200.05320.19
5.5.100.0330.06020.14
5.5.90.0200.05020.15
5.5.80.0170.06320.11
5.5.70.0330.04720.07
5.5.60.0300.04720.11
5.5.50.0170.05720.07
5.5.40.0270.06020.17
5.5.30.0200.06719.97
5.5.20.0130.05720.10
5.5.10.0070.06720.04
5.5.00.0170.08320.17

preferences:
13.53 ms | 406 KiB | 5 Q