3v4l.org

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

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.140.0090.00617.22
8.3.130.0080.00018.71
8.3.120.0080.00818.66
8.3.110.0070.00720.94
8.3.100.0040.00416.79
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0100.01018.31
8.3.60.0090.00918.31
8.3.50.0120.00724.43
8.3.40.0140.00321.86
8.3.30.0040.01118.59
8.3.20.0080.00024.18
8.3.10.0060.00324.66
8.3.00.0070.00326.16
8.2.250.0060.01316.37
8.2.240.0030.00617.27
8.2.230.0030.00622.58
8.2.220.0000.00824.06
8.2.210.0100.00726.77
8.2.200.0040.00718.88
8.2.190.0100.01016.68
8.2.180.0030.01425.92
8.2.170.0070.00718.82
8.2.160.0030.01722.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00726.35
8.2.110.0070.00321.04
8.2.100.0060.00617.72
8.2.90.0040.00417.75
8.2.80.0080.00018.66
8.2.70.0000.00918.05
8.2.60.0000.01017.97
8.2.50.0090.00018.10
8.2.40.0050.00219.30
8.2.30.0000.00719.13
8.2.20.0000.00717.93
8.2.10.0070.00319.23
8.2.00.0040.00419.11
8.1.300.0080.00018.02
8.1.290.0060.00330.84
8.1.280.0110.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.82
8.1.230.0060.00622.77
8.1.220.0080.00017.76
8.1.210.0030.00518.77
8.1.200.0030.00517.23
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0030.00618.55
8.1.160.0040.00419.00
8.1.150.0040.00418.89
8.1.140.0070.00018.73
8.1.130.0080.00020.05
8.1.120.0040.00417.30
8.1.110.0080.00017.36
8.1.100.0070.00017.31
8.1.90.0070.00017.34
8.1.80.0070.00317.41
8.1.70.0040.00417.32
8.1.60.0000.00917.58
8.1.50.0030.00517.39
8.1.40.0040.00417.49
8.1.30.0040.00417.65
8.1.20.0030.00617.52
8.1.10.0050.00317.46
8.1.00.0050.00217.27
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.32
8.0.270.0030.00316.85
8.0.260.0030.00318.48
8.0.250.0070.00016.84
8.0.240.0040.00417.01
8.0.230.0040.00416.78
8.0.220.0000.00716.72
8.0.210.0040.00416.84
8.0.200.0040.00416.98
8.0.190.0000.00716.94
8.0.180.0030.00316.86
8.0.170.0000.00816.81
8.0.160.0050.00216.93
8.0.150.0030.00316.88
8.0.140.0040.00416.76
8.0.130.0030.00313.34
8.0.120.0070.00016.80
8.0.110.0000.00816.70
8.0.100.0040.00416.91
8.0.90.0000.00816.86
8.0.80.0070.00916.86
8.0.70.0070.00016.91
8.0.60.0000.00716.75
8.0.50.0050.00216.69
8.0.30.0100.00617.22
8.0.20.0100.01216.98
8.0.10.0040.00416.88
8.0.00.0170.00316.74
7.4.330.0000.00515.55
7.4.320.0070.00016.41
7.4.300.0000.00616.45
7.4.290.0080.00016.43
7.4.280.0040.00416.59
7.4.270.0000.00716.58
7.4.260.0000.00513.32
7.4.250.0030.00316.48
7.4.240.0030.00316.45
7.4.230.0000.00716.56
7.4.220.0050.00216.64
7.4.210.0060.00916.51
7.4.200.0030.00316.49
7.4.130.0120.01216.40
7.4.120.0120.01516.50
7.4.110.0120.00616.45
7.4.100.0120.00616.52
7.4.90.0060.01216.36
7.4.80.0090.01516.46
7.4.70.0170.00316.63
7.4.60.0080.01216.22
7.4.50.0030.01616.48
7.4.40.0120.01216.43
7.4.30.0140.00516.62
7.4.20.0090.00916.48
7.4.10.0110.00716.49
7.4.00.0060.01316.69
7.3.330.0070.00016.18
7.3.320.0000.00613.10
7.3.310.0000.00716.26
7.3.300.0060.00316.03
7.3.290.0090.00816.19
7.3.260.0130.01016.34
7.3.250.0170.00716.15
7.3.240.0070.01116.50
7.3.230.0120.00616.45
7.3.220.0090.00916.23
7.3.210.0150.00916.30
7.3.200.0060.01316.21
7.3.190.0110.00816.43
7.3.180.0140.00316.31
7.3.170.0070.01116.46
7.3.160.0160.00316.42
7.3.150.0060.01316.30
7.3.140.0090.00916.46
7.3.130.0120.00616.34
7.3.120.0160.00316.45
7.3.110.0090.00916.07
7.3.100.0090.00916.34
7.3.90.0070.01116.31
7.3.80.0120.00616.24
7.3.70.0110.00616.33
7.3.60.0140.00316.30
7.3.50.0130.00316.42
7.3.40.0040.01216.36
7.3.30.0140.00316.38
7.3.20.0090.00916.46
7.3.10.0070.01116.39
7.3.00.0100.01016.25

preferences:
35.76 ms | 403 KiB | 5 Q