3v4l.org

run code in 300+ PHP versions simultaneously
<?php list(list($a, $b), list($c, $d)) = $x; // PHP5: $a = $x[0][0]; $b = $x[0][1]; $c = $x[1][0]; $d = $x[1][1]; // PHP7 (assuming nothing is a string): $_tmp1 = $x[0]; $a = $_tmp1[0]; $b = $_tmp1[1]; $_tmp2 = $x[1]; $c = $_tmp2[0]; $d = $_tmp2[1];

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.0090.01216.50
8.3.50.0110.00722.03
8.3.40.0070.00718.87
8.3.30.0110.00718.84
8.3.20.0000.00820.20
8.3.10.0040.00421.73
8.3.00.0040.00719.38
8.2.180.0120.00318.54
8.2.170.0120.00922.96
8.2.160.0100.00320.39
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00417.63
8.2.110.0070.00322.07
8.2.100.0090.00317.91
8.2.90.0050.00318.03
8.2.80.0000.00819.10
8.2.70.0050.00317.75
8.2.60.0000.00918.04
8.2.50.0000.00818.07
8.2.40.0040.00421.18
8.2.30.0060.00320.55
8.2.20.0000.00817.73
8.2.10.0080.00017.95
8.2.00.0040.00418.09
8.1.280.0210.00025.92
8.1.270.0060.00323.79
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00322.19
8.1.230.0090.00321.10
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00717.23
8.1.180.0030.00618.10
8.1.170.0000.00919.02
8.1.160.0040.00421.90
8.1.150.0070.00018.84
8.1.140.0030.00519.59
8.1.130.0000.00817.52
8.1.120.0070.00017.44
8.1.110.0040.00417.34
8.1.100.0030.00417.27
8.1.90.0040.00417.39
8.1.80.0000.00717.27
8.1.70.0000.00717.37
8.1.60.0040.00417.51
8.1.50.0030.00617.47
8.1.40.0040.00417.41
8.1.30.0080.00017.51
8.1.20.0040.00417.66
8.1.10.0060.00317.54
8.1.00.0060.00317.54
8.0.300.0080.00020.08
8.0.290.0030.00516.63
8.0.280.0030.00318.39
8.0.270.0030.00317.21
8.0.260.0030.00317.19
8.0.250.0040.00417.01
8.0.240.0000.00716.96
8.0.230.0030.00316.98
8.0.220.0030.00616.96
8.0.210.0000.00816.88
8.0.200.0030.00316.85
8.0.190.0040.00416.93
8.0.180.0040.00416.85
8.0.170.0000.00816.91
8.0.160.0000.00716.88
8.0.150.0000.01016.95
8.0.140.0000.00716.77
8.0.130.0030.00313.27
8.0.120.0040.00416.87
8.0.110.0060.00316.87
8.0.100.0070.00016.88
8.0.90.0000.00716.91
8.0.80.0060.01016.88
8.0.70.0040.00416.71
8.0.60.0080.00016.77
8.0.50.0040.00417.02
8.0.30.0100.00817.01
8.0.20.0130.00817.40
8.0.10.0000.00716.89
8.0.00.0110.00716.63
7.4.330.0060.00015.08
7.4.320.0060.00016.37
7.4.300.0030.00316.54
7.4.290.0030.00316.50
7.4.280.0070.00016.54
7.4.270.0070.00016.48
7.4.260.0070.00016.51
7.4.250.0000.00716.27
7.4.240.0040.00316.41
7.4.230.0000.00716.55
7.4.220.0180.00616.63
7.4.210.0060.01216.42
7.4.200.0070.00016.55
7.4.160.0000.01716.31
7.4.150.0150.00317.40
7.4.140.0110.00917.86
7.4.130.0080.01216.38
7.4.120.0110.00616.50
7.4.110.0150.00416.45
7.4.100.0160.00816.48
7.4.90.0040.01316.38
7.4.80.0080.00819.39
7.4.70.0110.00516.48
7.4.60.0080.00816.50
7.4.50.0040.00416.71
7.4.40.0100.00716.45
7.4.30.0060.01216.41
7.4.00.0120.00415.12
7.3.330.0000.00513.20
7.3.320.0050.00012.97
7.3.310.0070.00016.30
7.3.300.0000.00716.28
7.3.290.0090.00716.30
7.3.280.0060.01116.33
7.3.270.0110.00717.40
7.3.260.0040.01416.40
7.3.250.0080.00916.33
7.3.240.0100.00716.45
7.3.230.0130.00316.45
7.3.210.0090.00916.52
7.3.200.0110.00616.29
7.3.190.0080.00816.44
7.3.180.0100.01016.45
7.3.170.0080.01116.37
7.3.160.0110.00516.31
7.2.330.0160.00316.58
7.2.320.0070.01616.71
7.2.310.0030.01316.50
7.2.300.0060.01016.65
7.2.290.0070.01016.16
7.2.60.0100.00316.73
7.2.00.0060.00619.40
7.1.200.0030.00315.49
7.1.100.0120.00618.10
7.1.70.0000.00717.11
7.1.60.0120.00319.43
7.1.50.0030.01716.88
7.1.00.0030.07722.27
7.0.200.0140.00714.86
7.0.60.0130.07019.93
7.0.50.0000.04317.82
7.0.40.0030.08020.03
7.0.30.0000.09020.11
7.0.20.0270.08020.20
7.0.10.0070.08020.15
7.0.00.0170.07720.17
5.6.280.0030.03720.88
5.6.210.0030.08720.75
5.6.200.0070.08318.21
5.6.190.0070.04320.56
5.6.180.0070.06720.45
5.6.170.0300.07020.54
5.6.160.0030.04020.47
5.6.150.0130.07318.23
5.6.140.0100.07718.21
5.6.130.0100.06718.07
5.6.120.0070.06721.14
5.6.110.0100.07720.88
5.6.100.0000.04321.12
5.6.90.0130.07720.96
5.6.80.0030.04020.42
5.5.350.0370.06320.41
5.5.340.0030.06717.89
5.5.330.0070.05720.23
5.5.320.0230.03720.18
5.5.310.0300.07720.30
5.5.300.0200.07017.95
5.5.290.0000.04317.95
5.5.280.0070.08720.96
5.5.270.0000.05320.86
5.5.260.0070.07320.95
5.5.250.0170.08020.58
5.5.240.0130.06020.16
5.4.450.0530.07019.26
5.4.440.0500.05719.31
5.4.430.0730.07319.44
5.4.420.0570.04719.42
5.4.410.0500.05019.36
5.4.400.0430.05719.13
5.4.390.0630.05318.91
5.4.380.0600.05019.19
5.4.370.0830.04319.28
5.4.360.0700.06719.14
5.4.350.0670.05019.28
5.4.340.0430.05718.78
5.4.320.0530.05019.16
5.4.310.0730.06318.78
5.4.300.0500.05318.89
5.4.290.0630.05719.27
5.4.280.0470.07718.77
5.4.270.0430.06319.15
5.4.260.0100.07719.07
5.4.250.0170.05719.30
5.4.240.0300.05719.23
5.4.230.0630.05319.19
5.4.220.0370.06319.13
5.4.210.0530.05018.93
5.4.200.0600.05019.30
5.4.190.0430.05719.25
5.4.180.0170.05019.23
5.4.170.0100.05718.89
5.4.160.0100.05319.28
5.4.150.0230.05718.91
5.4.140.0200.04716.27
5.4.130.0130.04716.21
5.4.120.0200.05316.15
5.4.110.0230.04716.21
5.4.100.0270.05716.39
5.4.90.0170.04716.45
5.4.80.0230.04716.05
5.4.70.0200.07016.44
5.4.60.0230.04316.29
5.4.50.0070.05716.47
5.4.40.0230.04316.04
5.4.30.0230.05716.42
5.4.20.0100.06016.46
5.4.10.0170.05716.43
5.4.00.0170.06715.72

preferences:
51.98 ms | 401 KiB | 5 Q