3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'deep' => [ 'bar' => 'foo', ], ]; foreach($arr['deep'] ?? [] as &$value) { $value = 'x'; } var_dump('x' === $arr['deep']['bar']); foreach($arr['deep'] as &$value) { $value = 'x'; } var_dump('x' === $arr['deep']['bar']);

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.5.10.0040.00420.21
8.5.00.0130.00820.05
8.4.150.0020.00014.05
8.4.140.0150.01417.71
8.4.130.0130.00717.71
8.4.120.0120.00820.73
8.4.110.0090.01219.00
8.4.100.0150.00617.75
8.4.90.0120.00917.54
8.4.80.0100.00917.70
8.4.70.0150.00717.52
8.4.60.0130.00820.52
8.4.50.0110.01117.45
8.4.40.0120.00620.58
8.4.30.0050.00320.71
8.4.20.0190.00319.89
8.4.10.0100.00623.70
8.3.280.0090.01018.43
8.3.270.0170.00616.55
8.3.260.0110.00816.83
8.3.250.0090.00819.04
8.3.240.0110.00916.68
8.3.230.0120.01116.52
8.3.220.0120.00416.80
8.3.210.0120.00716.84
8.3.200.0060.00316.43
8.3.190.0100.00717.39
8.3.180.0090.00917.23
8.3.170.0070.01017.16
8.3.160.0120.00616.81
8.3.150.0160.00317.22
8.3.140.0140.00417.10
8.3.130.0090.00018.34
8.3.120.0080.00018.78
8.3.110.0090.00320.94
8.3.100.0060.01016.59
8.3.90.0040.00426.77
8.3.80.0040.00418.38
8.3.70.0120.00418.56
8.3.60.0110.00716.50
8.3.50.0110.00716.73
8.3.40.0110.00421.86
8.3.30.0110.00418.81
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.290.0070.00120.55
8.2.280.0040.00418.61
8.2.270.0120.00617.09
8.2.260.0030.01420.45
8.2.250.0080.00016.43
8.2.240.0080.00017.14
8.2.230.0030.00522.58
8.2.220.0030.00624.06
8.2.210.0050.00326.77
8.2.200.0070.00318.29
8.2.190.0040.01416.63
8.2.180.0070.01118.43
8.2.170.0110.00722.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.01
8.2.110.0030.00622.26
8.2.100.0090.00319.04
8.2.90.0040.00417.75
8.2.80.0000.00919.29
8.2.70.0050.00517.75
8.2.60.0000.00817.50
8.2.50.0040.00417.93
8.2.40.0000.00819.47
8.2.30.0160.00017.62
8.2.20.0040.00417.63
8.2.10.0140.00317.62
8.2.00.0060.01017.62
8.1.330.0120.00816.69
8.1.320.0110.00915.84
8.1.310.0040.00716.63
8.1.300.0060.01317.83
8.1.290.0070.00330.84
8.1.280.0140.00425.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.48
8.1.230.0070.00419.08
8.1.220.0030.00517.77
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0040.00417.35
8.1.180.0080.00418.10
8.1.170.0050.00217.62
8.1.160.0110.00617.62
8.1.150.0140.00317.62
8.1.140.0160.00017.62
8.1.130.0130.00217.62
8.1.120.0050.01117.62
8.1.110.0170.00017.62
8.1.100.0160.00317.62
8.1.90.0160.00017.62
8.1.80.0050.01017.62
8.1.70.0090.00917.62
8.1.60.0150.00417.62
8.1.50.0090.00917.62
8.1.40.0100.01017.62
8.1.30.0140.00317.62
8.1.20.0090.01217.62
8.1.10.0110.00817.62
8.1.00.0120.00617.62
8.0.300.0000.00819.63
8.0.290.0000.00716.58
8.0.280.0030.01317.62
8.0.270.0120.00417.62
8.0.260.0070.01017.62
8.0.250.0110.00417.62
8.0.240.0170.00017.62
8.0.230.0080.00817.62
8.0.220.0140.00317.62
8.0.210.0090.00717.62
8.0.200.0080.00817.62
8.0.190.0130.00317.62
8.0.180.0040.01217.62
8.0.170.0140.00217.62
8.0.160.0130.00317.62
8.0.150.0110.00517.62
8.0.140.0100.00717.62
8.0.130.0140.00317.62
8.0.120.0170.00017.62
8.0.110.0120.00517.62
8.0.100.0120.00617.62
8.0.90.0150.00517.62
8.0.80.0090.00917.62
8.0.70.0110.00517.62
8.0.60.0160.00017.62
8.0.50.0080.00817.62
8.0.30.0110.00517.62
8.0.20.0080.00817.62
8.0.10.0070.00717.62

preferences:
36.66 ms | 406 KiB | 6 Q