3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=[ 'a' => [ 'b' => 3, ] ]; $arrCopy = $arr; $arrCopy['a']['b'] = 12; var_dump($arr); var_dump($arrCopy);

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.20.0070.01317.69
8.4.10.0080.00021.19
8.3.150.0090.00917.02
8.3.140.0080.00017.09
8.3.130.0070.00316.58
8.3.120.0060.00019.04
8.3.110.0100.00720.94
8.3.100.0140.00318.29
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0090.00916.58
8.3.60.0090.00918.43
8.3.50.0110.01024.52
8.3.40.0100.00721.91
8.3.30.0060.00918.72
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.260.0070.01116.52
8.2.250.0090.00616.53
8.2.240.0000.01016.96
8.2.230.0060.00322.58
8.2.220.0080.00024.06
8.2.210.0050.00326.77
8.2.200.0030.01016.63
8.2.190.0040.01816.75
8.2.180.0040.01825.92
8.2.170.0070.00718.88
8.2.160.0070.00722.96
8.2.150.0030.00525.66
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00419.95
8.2.110.0110.00021.12
8.2.100.0080.00317.91
8.2.90.0040.00417.90
8.2.80.0080.00019.28
8.2.70.0030.00518.04
8.2.60.0080.00017.63
8.2.50.0080.00017.55
8.2.40.0040.00417.62
8.2.30.0040.00417.97
8.2.20.0040.00417.98
8.2.10.0060.00619.11
8.2.00.0070.00019.16
8.1.310.0090.00917.85
8.1.300.0160.00315.97
8.1.290.0050.00530.84
8.1.280.0160.00625.92
8.1.270.0000.00724.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.50
8.1.230.0080.00320.91
8.1.220.0040.00417.76
8.1.210.0000.00818.84
8.1.200.0060.00317.35
8.1.190.0030.00517.22
8.1.180.0030.00518.10
8.1.170.0080.00018.77
8.1.160.0000.00718.73
8.1.150.0060.00318.87
8.1.140.0040.00418.87
8.1.130.0070.00019.94
8.1.120.0000.00817.36
8.1.110.0000.00817.43
8.1.100.0080.00017.38
8.1.90.0040.00417.21
8.1.80.0000.00717.28
8.1.70.0050.00317.39
8.1.60.0050.00517.52
8.1.50.0030.00617.46
8.1.40.0000.00717.37
8.1.30.0040.00417.59
8.1.20.0000.00817.55
8.1.10.0000.00817.54
8.1.00.0000.00817.45
8.0.300.0070.00019.87
8.0.290.0070.00016.63
8.0.280.0030.00318.29
8.0.270.0030.00418.00
8.0.260.0070.00018.57
8.0.250.0030.00316.93
8.0.240.0040.00416.82
8.0.230.0040.00216.90
8.0.220.0030.00316.66
8.0.210.0000.00716.83
8.0.200.0000.00616.92
8.0.190.0000.00816.82
8.0.180.0070.00016.86
8.0.170.0040.00416.71
8.0.160.0030.00316.77
8.0.150.0050.00316.64
8.0.140.0000.00716.73
8.0.130.0000.00613.26
8.0.120.0040.00416.68
8.0.110.0070.00316.63
8.0.100.0040.00416.79
8.0.90.0000.00816.67
8.0.80.0170.00216.82
8.0.70.0040.00416.61
8.0.60.0050.00316.70
8.0.50.0050.00316.82
8.0.30.0110.01416.93
8.0.20.0150.00417.01
8.0.10.0000.00716.82
8.0.00.0100.00716.61
7.4.330.0050.00015.55
7.4.320.0000.00616.30
7.4.300.0000.00716.35
7.4.290.0040.00416.34
7.4.280.0000.00716.49
7.4.270.0030.00516.50
7.4.260.0050.00013.18
7.4.250.0070.00016.47
7.4.240.0030.00316.41
7.4.230.0000.00716.64
7.4.220.0030.00316.46
7.4.210.0100.01016.45
7.4.200.0030.00316.36
7.4.130.0100.00716.34
7.4.120.0080.00816.43
7.4.110.0090.00916.36
7.4.100.0000.01816.54
7.4.90.0070.01016.36
7.4.80.0070.01016.39
7.4.70.0090.00916.48
7.4.60.0190.00016.57
7.4.50.0130.01016.54
7.4.40.0090.00916.43
7.4.30.0070.01016.44
7.4.20.0060.01216.48
7.4.10.0080.00816.33
7.4.00.0070.01016.55
7.3.330.0110.00016.27
7.3.320.0020.00213.08
7.3.310.0000.00716.02
7.3.300.0030.00316.17
7.3.290.0060.00916.23
7.3.260.0140.00416.13
7.3.250.0160.00316.31
7.3.240.0170.00016.21
7.3.230.0030.01516.13
7.3.220.0120.01216.53
7.3.210.0100.01016.16
7.3.200.0100.00716.21
7.3.190.0090.00916.30
7.3.180.0180.00616.32
7.3.170.0140.00316.38
7.3.160.0070.01016.27
7.3.150.0030.01516.39
7.3.140.0100.00716.21
7.3.130.0060.01016.12
7.3.120.0140.00316.16
7.3.110.0150.00316.20
7.3.100.0130.00316.48
7.3.90.0100.00716.05
7.3.80.0060.01116.31
7.3.70.0090.00916.11
7.3.60.0090.00916.35
7.3.50.0110.00716.45
7.3.40.0080.00816.33
7.3.30.0130.01016.24
7.3.20.0120.00616.27
7.3.10.0110.01416.33
7.3.00.0160.01016.41

preferences:
49.76 ms | 403 KiB | 5 Q