3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tree = [ 10 => [], 11 => [ 4 => [], 5 => [], 6 => [] ] ]; $path = array(11,5,0); $inseration = array('A','B'); $current = &$tree; foreach($path as $key){ $current = &$current[$key]; } $current = $inseration; print_r($tree);

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.0030.00524.18
8.4.110.0040.00520.62
8.4.100.0150.00718.79
8.4.90.0130.00620.39
8.4.80.0120.00818.89
8.4.70.0100.00917.94
8.4.60.0080.00819.17
8.4.50.0070.00518.79
8.4.40.0100.01019.29
8.4.30.0150.00422.32
8.4.20.0130.00720.46
8.4.10.0000.00919.41
8.3.250.0120.00718.87
8.3.240.0110.00916.92
8.3.230.0050.00416.67
8.3.220.0120.00619.07
8.3.210.0100.01116.54
8.3.200.0090.01116.59
8.3.190.0040.00419.02
8.3.180.0080.01017.03
8.3.170.0160.00320.68
8.3.160.0070.01120.82
8.3.150.0110.00717.34
8.3.140.0110.00716.68
8.3.130.0100.00018.34
8.3.120.0040.01116.80
8.3.110.0080.00316.71
8.3.100.0160.00320.33
8.3.90.0040.00418.36
8.3.80.0030.00917.97
8.3.70.0110.01116.63
8.3.60.0150.00018.30
8.3.50.0090.00917.48
8.3.40.0110.00718.64
8.3.30.0120.00318.75
8.3.20.0040.00421.80
8.3.10.0040.00421.75
8.3.00.0040.00423.36
8.2.290.0040.00420.59
8.2.280.0130.00718.11
8.2.270.0120.00617.04
8.2.260.0100.00716.43
8.2.250.0030.00716.50
8.2.240.0060.00317.30
8.2.230.0060.00320.94
8.2.220.0050.00524.06
8.2.210.0110.00426.77
8.2.200.0030.00616.75
8.2.190.0040.01218.41
8.2.180.0140.00716.38
8.2.170.0070.00719.09
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.01120.29
8.2.100.0070.00417.91
8.2.90.0060.00319.22
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0060.00318.05
8.2.50.0040.00418.07
8.2.40.0030.00618.35
8.2.30.0000.00818.14
8.2.20.0040.00418.09
8.2.10.0000.00819.39
8.2.00.0080.00019.24
8.1.330.0080.01121.86
8.1.320.0050.00316.04
8.1.310.0040.00415.92
8.1.300.0130.00618.53
8.1.290.0090.00018.88
8.1.280.0090.00625.92
8.1.270.0050.00222.06
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00323.82
8.1.230.0000.01123.98
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00917.22
8.1.180.0000.00918.10
8.1.170.0020.00518.76
8.1.160.0040.00418.88
8.1.150.0040.00418.77
8.1.140.0030.00618.93
8.1.130.0040.00420.20
8.1.120.0030.00317.46
8.1.110.0080.00017.31
8.1.100.0030.00617.51
8.1.90.0000.00817.46
8.1.80.0050.00217.50
8.1.70.0070.00017.55
8.1.60.0080.00017.59
8.1.50.0030.00617.41
8.1.40.0090.00017.50
8.1.30.0080.00017.61
8.1.20.0030.00517.67
8.1.10.0030.00617.36
8.1.00.0000.00817.38
8.0.300.0080.00418.77
8.0.290.0110.00016.75
8.0.280.0050.00318.44
8.0.270.0030.00317.26
8.0.260.0000.00618.32
8.0.250.0030.00316.95
8.0.240.0030.00316.80
8.0.230.0030.00316.86
8.0.220.0050.00316.86
8.0.210.0000.00816.91
8.0.200.0070.00016.95
8.0.190.0000.00716.91
8.0.180.0000.00716.80
8.0.170.0090.00016.94
8.0.160.0040.00416.93
8.0.150.0000.00716.75
8.0.140.0000.00816.84
8.0.130.0000.00613.32
8.0.120.0000.00816.85
8.0.110.0000.00816.72
8.0.100.0050.00316.75
8.0.90.0040.00416.88
8.0.80.0130.00316.83
8.0.70.0070.00016.76
8.0.60.0040.00416.76
8.0.50.0040.00416.80
8.0.30.0120.00717.21
8.0.20.0130.00617.05
8.0.10.0040.00417.08
8.0.00.0070.01216.70
7.4.330.0030.00315.55
7.4.320.0060.00016.50
7.4.300.0030.00316.50
7.4.290.0030.00316.49
7.4.280.0030.00516.59
7.4.270.0000.01016.53
7.4.260.0070.00016.41
7.4.250.0000.00716.41
7.4.240.0060.00216.59
7.4.230.0000.00716.68
7.4.220.0070.00016.67
7.4.210.0090.00716.53
7.4.200.0030.00316.70
7.4.160.0090.00816.47
7.4.140.0130.00317.86
7.4.130.0110.01416.66
7.4.120.0090.01216.34
7.4.110.0060.01616.54
7.4.100.0070.01016.61
7.4.90.0130.00616.56
7.4.80.0060.01119.39
7.4.70.0060.00916.72
7.4.60.0030.01316.42
7.4.50.0090.00616.63
7.4.40.0110.00816.38
7.4.00.0050.01114.88
7.3.330.0050.00013.21
7.3.320.0030.00313.12
7.3.310.0000.00716.30
7.3.300.0000.00716.40
7.3.290.0000.00716.35
7.3.280.0050.01316.23
7.3.260.0120.00816.41
7.3.240.0110.00816.35
7.3.230.0060.01216.50
7.3.210.0060.01116.32
7.3.200.0110.00516.46
7.3.190.0080.00816.58
7.3.180.0110.01116.43
7.3.170.0060.01016.39
7.3.160.0090.00616.37
7.3.120.0090.00714.87
7.3.110.0050.01114.86
7.3.100.0040.01114.67
7.3.90.0060.01014.56
7.3.80.0030.00815.00
7.3.70.0010.01014.89
7.3.60.0030.01114.79
7.3.50.0060.00714.88
7.3.40.0040.01014.65
7.3.30.0030.01014.67
7.3.20.0040.00916.21
7.3.10.0090.00716.31
7.3.00.0060.00816.21
7.2.330.0140.00316.60
7.2.320.0040.01516.39
7.2.310.0140.00316.45
7.2.300.0130.00316.53
7.2.290.0000.01716.53
7.2.250.0080.01015.04
7.2.240.0020.01414.90
7.2.230.0060.00815.14
7.2.220.0050.01115.13
7.2.210.0060.00714.79
7.2.200.0080.00615.04
7.2.190.0060.01015.01
7.2.180.0070.00614.88
7.2.170.0040.01214.91
7.2.160.0040.00915.00
7.2.150.0050.00616.25
7.2.140.0110.00716.26
7.2.130.0060.00816.30
7.2.120.0060.00816.15
7.2.110.0080.00716.09
7.2.100.0420.00516.26
7.2.90.0060.00816.20
7.2.80.0120.00316.20
7.2.70.0070.00716.35
7.2.60.0070.00816.25
7.2.50.0060.00716.37
7.2.40.0080.00816.25
7.2.30.0070.00816.31
7.2.20.0070.00716.20
7.2.10.0070.00916.25
7.2.00.0090.00516.24
7.1.330.0060.00915.72
7.1.320.0040.00915.88
7.1.310.0020.01015.88
7.1.300.0070.00815.29
7.1.290.0110.00515.34
7.1.280.0070.00815.25
7.1.270.0060.00915.27
7.1.260.0050.00915.36
7.1.250.0070.00615.23
7.1.240.0060.00815.97
7.1.230.0030.01015.96
7.1.220.0060.00615.68
7.1.210.0030.00715.92
7.1.200.0040.00715.81
7.1.190.0080.00415.86
7.1.180.0060.00615.83
7.1.170.0000.01315.72
7.1.160.0120.00615.94
7.1.150.0050.00515.77
7.1.140.0110.00315.98
7.1.130.0100.00315.88
7.1.120.0070.00315.70
7.1.110.0070.00715.92
7.1.100.0000.01215.77
7.1.90.0080.00415.79
7.1.80.0060.00916.02
7.1.70.0070.00715.81
7.1.60.0030.00615.70
7.1.50.0030.01015.80
7.1.40.0070.00315.60
7.1.30.0070.00715.81
7.1.20.0030.00915.71
7.1.10.0090.00016.02
7.1.00.0040.00815.54

preferences:
27.2 ms | 403 KiB | 5 Q