3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['foo' => ['bar' => 'baz']]; ['foo' => &$foo] = $arr; $foo = ['baz' => 'qux']; print_r($arr); // ['foo' => ['baz' => 'qux']];

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.10.0030.00617.49
8.3.140.0190.00017.24
8.3.130.0050.00318.25
8.3.120.0060.00319.00
8.3.110.0060.00320.94
8.3.100.0080.00024.06
8.3.90.0000.00926.77
8.3.80.0060.00316.50
8.3.70.0070.01316.63
8.3.60.0070.01316.36
8.3.50.0120.00617.99
8.3.40.0110.00418.70
8.3.30.0110.00818.59
8.3.20.0040.00421.64
8.3.10.0080.00023.53
8.3.00.0070.00023.48
8.2.250.0080.00018.63
8.2.240.0040.00418.89
8.2.230.0050.00522.58
8.2.220.0030.00737.54
8.2.210.0040.01526.77
8.2.200.0100.00016.63
8.2.190.0130.00616.63
8.2.180.0130.00625.92
8.2.170.0090.00618.78
8.2.160.0070.00722.96
8.2.150.0150.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00419.82
8.2.120.0070.00026.35
8.2.110.0090.00020.51
8.2.100.0080.00817.72
8.2.90.0060.00317.75
8.2.80.0000.00818.67
8.2.70.0060.00317.50
8.2.60.0070.00317.63
8.2.50.0080.00018.10
8.2.40.0000.00719.48
8.2.30.0040.00419.11
8.2.20.0000.00817.92
8.2.10.0070.00020.51
8.2.00.0000.00819.39
8.1.300.0040.00717.70
8.1.290.0060.00318.88
8.1.280.0120.00325.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0170.00023.78
8.1.230.0070.00723.91
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0080.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0000.00718.81
8.1.150.0000.00818.82
8.1.140.0000.00723.88
8.1.130.0030.00320.03
8.1.120.0030.00317.36
8.1.110.0050.00317.38
8.1.100.0030.00517.32
8.1.90.0060.00317.34
8.1.80.0000.00817.43
8.1.70.0070.00017.42
8.1.60.0030.00517.53
8.1.50.0090.00017.43
8.1.40.0000.00817.45
8.1.30.0040.00417.47
8.1.20.0030.00617.58
8.1.10.0000.00717.48
8.1.00.0060.00317.29
8.0.300.0030.00618.77
8.0.290.0050.00216.63
8.0.280.0000.00718.43
8.0.270.0000.00717.24
8.0.260.0000.00618.41
8.0.250.0000.00716.85
8.0.240.0000.00616.90
8.0.230.0030.00316.71
8.0.220.0030.00316.71
8.0.210.0040.00416.79
8.0.200.0030.00316.88
8.0.190.0070.00016.91
8.0.180.0040.00416.88
8.0.170.0030.00616.84
8.0.160.0000.00716.86
8.0.150.0050.00316.71
8.0.140.0040.00416.73
8.0.130.0000.00613.23
8.0.120.0080.00016.70
8.0.110.0000.00716.73
8.0.100.0000.00816.71
8.0.90.0050.00316.72
8.0.80.0040.01216.70
8.0.70.0040.00416.77
8.0.60.0070.00016.79
8.0.50.0040.00416.69
8.0.30.0050.01316.81
8.0.20.0170.00317.40
8.0.10.0030.00516.98
8.0.00.0120.00616.55
7.4.330.0020.00216.76
7.4.320.0030.00316.32
7.4.300.0000.00616.51
7.4.290.0000.00716.39
7.4.280.0050.00316.51
7.4.270.0040.00416.52
7.4.260.0040.00416.35
7.4.250.0000.00716.34
7.4.240.0000.00716.54
7.4.230.0050.00316.50
7.4.220.0000.00716.40
7.4.210.0080.00616.51
7.4.200.0050.00316.56
7.4.160.0100.00716.50
7.4.140.0100.00917.86
7.4.130.0080.00816.46
7.4.120.0140.00916.30
7.4.110.0030.01316.57
7.4.100.0160.00616.55
7.4.90.0130.00316.30
7.4.80.0070.01119.39
7.4.70.0120.00616.45
7.4.60.0090.00816.46
7.4.50.0060.00916.30
7.4.40.0170.00516.44
7.3.330.0030.00312.95
7.3.320.0060.00013.04
7.3.310.0030.00316.20
7.3.300.0030.00316.04
7.3.290.0070.00716.23
7.3.280.0060.01016.25
7.3.260.0090.00716.32
7.3.240.0110.00616.38
7.3.230.0080.00916.41
7.3.210.0140.01116.32
7.3.200.0060.01016.38
7.3.190.0090.01216.53
7.3.180.0120.00416.50
7.3.170.0070.01416.20
7.3.160.0120.00316.32
7.3.00.0040.01316.20
7.2.330.0100.01016.39
7.2.320.0340.02916.28
7.2.310.0070.01116.21
7.2.300.0120.00616.32
7.2.290.0120.00316.61
7.2.130.0000.01116.41
7.2.120.0090.00316.16
7.2.110.0090.00616.04
7.2.100.0120.00316.32
7.2.90.0110.00416.00
7.2.80.0040.01016.59
7.2.70.0070.00716.55
7.2.60.0040.00716.84
7.2.50.0040.00816.16
7.2.40.0030.00916.66
7.2.30.0070.00716.59
7.2.20.0040.01116.78
7.2.10.0070.00716.61
7.2.00.0080.00816.81
7.1.250.0100.00315.35
7.0.330.0000.01115.16
5.6.380.0060.00613.83

preferences:
66.84 ms | 403 KiB | 5 Q