3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a' => 'A', 'b' => 'B']; $key = 'b'; [$key => $b, 'a' => $a] = $arr; var_dump($a); var_dump($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.4.120.0110.00924.16
8.4.110.0120.00820.64
8.4.100.0030.00617.80
8.4.90.0050.00417.67
8.4.80.0040.00417.63
8.4.70.0040.00417.58
8.4.60.0090.01018.88
8.4.50.0120.00818.86
8.4.40.0140.00717.46
8.4.30.0150.00318.79
8.4.20.0130.00618.03
8.4.10.0130.00619.32
8.3.250.0130.00618.82
8.3.240.0120.00716.62
8.3.230.0130.00616.47
8.3.220.0120.00718.36
8.3.210.0100.00916.58
8.3.200.0050.00316.68
8.3.190.0050.00317.00
8.3.180.0100.00819.11
8.3.170.0150.00320.71
8.3.160.0070.01116.95
8.3.150.0060.01218.87
8.3.140.0150.00017.04
8.3.130.0060.00318.18
8.3.120.0000.00819.09
8.3.110.0160.00320.94
8.3.100.0080.00016.47
8.3.90.0070.00726.77
8.3.80.0040.00416.25
8.3.70.0060.00916.61
8.3.60.0100.01018.30
8.3.50.0090.00618.37
8.3.40.0030.01623.65
8.3.30.0070.00719.90
8.3.20.0000.00724.18
8.3.10.0100.00921.75
8.3.00.0130.00718.72
8.2.290.0120.00722.60
8.2.280.0130.00618.31
8.2.270.0100.00718.88
8.2.260.0100.00718.90
8.2.250.0030.00518.24
8.2.240.0060.01219.09
8.2.230.0000.00822.58
8.2.220.0000.00924.06
8.2.210.0030.00626.77
8.2.200.0030.00718.13
8.2.190.0150.00016.61
8.2.180.0040.01916.61
8.2.170.0070.00718.77
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0110.00820.43
8.2.130.0060.01020.45
8.2.120.0100.00618.97
8.2.110.0140.00519.05
8.2.100.0180.00219.02
8.2.90.0100.00918.78
8.2.80.0070.01119.08
8.2.70.0090.01118.68
8.2.60.0150.00218.64
8.2.50.0100.00718.54
8.2.40.0060.01118.87
8.2.30.0120.00918.73
8.2.20.0110.00718.77
8.2.10.0070.00618.80
8.2.00.0060.00718.83
8.1.330.0110.00818.23
8.1.320.0110.00716.09
8.1.310.0080.00016.73
8.1.300.0030.01219.25
8.1.290.0030.00630.84
8.1.280.0200.00325.92
8.1.270.0100.00322.08
8.1.260.0070.00521.98
8.1.250.0100.00222.14
8.1.240.0060.00618.52
8.1.230.0110.00218.47
8.1.220.0020.01018.93
8.1.210.0050.00718.43
8.1.200.0060.00518.72
8.1.190.0070.00118.52
8.1.180.0030.00518.40
8.1.170.0050.00418.35
8.1.160.0030.00618.52
8.1.150.0070.01218.40
8.1.140.0090.00619.28
8.1.130.0050.00318.58
8.1.120.0110.00118.48
8.1.110.0090.00318.28
8.1.100.0060.00618.57
8.1.90.0050.00518.51
8.1.80.0000.00918.46
8.1.70.0050.00318.51
8.1.60.0070.00118.55
8.1.50.0060.00318.52
8.1.40.0050.00318.68
8.1.30.0060.00318.71
8.1.20.0070.00118.58
8.1.10.0090.00518.59
8.1.00.0070.00118.59

preferences:
28.18 ms | 403 KiB | 5 Q