3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_array = array( 0xcc5c4600 => 1, 0xce331a00 => 2 ); $test_array[0xce359000] = 3; var_dump($test_array); var_dump($test_array[0xce331a00]); class foo { public $x; public function __construct() { $this->x[0xce359000] = 3; var_dump($this->x); } } new foo; ?>

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.60.0080.01116.75
8.3.50.0140.00522.82
8.3.40.0040.01118.81
8.3.30.0100.00319.09
8.3.20.0040.00420.30
8.3.10.0040.00423.70
8.3.00.0040.00417.59
8.2.180.0090.00618.11
8.2.170.0080.00822.96
8.2.160.0070.00720.22
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00626.16
8.2.120.0050.00320.95
8.2.110.0030.00720.46
8.2.100.0080.00417.72
8.2.90.0060.00319.08
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00318.34
8.2.30.0050.00318.14
8.2.20.0000.00817.66
8.2.10.0000.00717.97
8.2.00.0050.00217.62
8.1.280.0030.01125.92
8.1.270.0040.00422.19
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0030.00722.59
8.1.230.0040.00720.77
8.1.220.0000.00818.77
8.1.210.0060.00318.77
8.1.200.0000.01017.22
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0050.00318.36
8.1.160.0030.00321.93
8.1.150.0040.00418.86
8.1.140.0040.00417.39
8.1.130.0030.00317.75
8.1.120.0040.00417.39
8.1.110.0050.00317.43
8.1.100.0040.00417.36
8.1.90.0030.00317.29
8.1.80.0030.00517.26
8.1.70.0040.00417.38
8.1.60.0000.00817.59
8.1.50.0040.00417.51
8.1.40.0000.00817.40
8.1.30.0030.00617.64
8.1.20.0000.00817.54
8.1.10.0030.00517.59
8.1.00.0040.00417.55
8.0.300.0070.00019.72
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0000.00717.19
8.0.260.0000.00817.07
8.0.250.0070.00016.86
8.0.240.0000.00716.92
8.0.230.0040.00416.71
8.0.220.0000.00716.88
8.0.210.0000.00716.73
8.0.200.0000.00716.80
8.0.190.0000.01216.93
8.0.180.0000.00716.75
8.0.170.0060.00316.76
8.0.160.0040.00416.85
8.0.150.0000.00816.78
8.0.140.0000.00716.78
8.0.130.0000.00613.33
8.0.120.0000.00816.70
8.0.110.0000.00716.84
8.0.100.0000.00716.73
8.0.90.0000.00816.77
8.0.80.0120.00616.86
8.0.70.0000.00816.61
8.0.60.0040.00416.87
8.0.50.0070.00016.84
8.0.30.0120.00717.09
8.0.20.0120.00817.40
8.0.10.0040.00417.01
8.0.00.0080.01116.69
7.4.330.0050.00015.09
7.4.320.0060.00016.54
7.4.300.0060.00016.64
7.4.290.0040.00416.61
7.4.280.0000.00716.62
7.4.270.0030.00316.54
7.4.260.0030.00316.51
7.4.250.0000.00716.55
7.4.240.0060.00116.47
7.4.230.0040.00416.63
7.4.220.0150.00416.53
7.4.210.0000.01416.61
7.4.200.0000.00716.56
7.4.160.0040.01216.39
7.4.150.0150.00317.40
7.4.140.0110.01117.86
7.4.130.0110.00616.49
7.4.120.0070.01016.50
7.4.110.0160.00016.26
7.4.100.0130.00716.46
7.4.90.0030.01416.42
7.4.80.0070.01019.39
7.4.70.0150.01016.43
7.4.60.0060.01016.55
7.4.50.0020.00216.50
7.4.40.0070.01016.34
7.4.30.0070.01016.52
7.4.00.0060.00915.08
7.3.330.0000.00613.28
7.3.320.0030.00213.07
7.3.310.0050.00216.20
7.3.300.0030.00316.34
7.3.290.0030.01116.35
7.3.280.0070.01016.41
7.3.270.0120.00817.40
7.3.260.0140.00416.37
7.3.250.0140.00316.41
7.3.240.0060.01016.29
7.3.230.0140.00416.39
7.3.210.0040.01316.26
7.3.200.0060.01419.39
7.3.190.0040.01416.35
7.3.180.0070.01016.30
7.3.170.0090.01216.27
7.3.160.0110.01016.29
7.2.330.0030.01516.38
7.2.320.0030.01316.38
7.2.310.0070.01016.39
7.2.300.0070.01416.30
7.2.290.0130.00416.55
7.2.00.0070.01019.29
7.1.100.0040.00418.41
7.1.70.0000.00817.32
7.1.60.0030.02019.40
7.1.50.0120.00917.09
7.1.00.0030.07722.46
7.0.200.0000.00716.69
7.0.140.0070.07321.95
7.0.60.0030.04319.82
7.0.50.0100.08017.91
7.0.40.0030.05720.25
7.0.30.0300.07720.26
7.0.20.0200.03720.05
7.0.10.0070.07720.23
7.0.00.0130.03320.06
5.6.280.0070.07021.02
5.6.210.0170.06720.52
5.6.200.0130.06718.19
5.6.190.0070.04720.41
5.6.180.0370.07020.63
5.6.170.0270.04720.40
5.6.160.0070.04720.71
5.6.150.0030.04018.15
5.6.140.0030.08318.28
5.6.130.0000.06318.21
5.6.120.0070.04721.00
5.6.110.0100.08021.01
5.6.100.0130.07721.04
5.6.90.0100.06321.06
5.6.80.0130.07020.49
5.5.350.0000.04020.32
5.5.340.0030.05318.03
5.5.330.0070.07720.28
5.5.320.0070.04320.27
5.5.310.0200.04720.27
5.5.300.0030.08017.99
5.5.290.0030.08317.98
5.5.280.0030.04020.77
5.5.270.0100.05020.80
5.5.260.0070.09320.80
5.5.250.0100.08020.63
5.5.240.0330.06720.26
5.4.450.0600.05719.48
5.4.440.0900.05319.30
5.4.430.0170.06719.68
5.4.420.0130.07019.67
5.4.410.0070.05719.27
5.4.400.0130.05019.06
5.4.390.0270.05719.16
5.4.380.0030.05718.56
5.4.370.0100.04718.76
5.4.360.0070.04018.69
5.4.350.0070.04212.02
5.4.340.0090.03412.02
5.4.320.0100.03812.50
5.4.310.0040.04112.50
5.4.300.0070.03612.50
5.4.290.0070.03712.50
5.4.280.0080.03312.39
5.4.270.0070.03612.39
5.4.260.0060.03812.40
5.4.250.0070.03812.39
5.4.240.0050.03812.39
5.4.230.0060.03912.38
5.4.220.0050.03912.39
5.4.210.0050.03712.39
5.4.200.0090.03512.39
5.4.190.0090.04712.39
5.4.180.0080.03412.38
5.4.170.0080.03312.39
5.4.160.0060.03612.39
5.4.150.0040.03812.38
5.4.140.0040.04012.07
5.4.130.0070.03512.06
5.4.120.0070.03512.02
5.4.110.0030.03812.01
5.4.100.0040.03612.01
5.4.90.0050.03812.01
5.4.80.0070.03512.01
5.4.70.0040.03812.01
5.4.60.0070.03512.01
5.4.50.0050.04612.01
5.4.40.0080.04712.00
5.4.30.0100.04311.99
5.4.20.0080.03512.00
5.4.10.0060.03511.99
5.4.00.0080.03511.48
5.3.290.0060.03912.80
5.3.280.0060.03812.71
5.3.270.0050.04612.73
5.3.260.0040.04212.72
5.3.250.0060.03612.72
5.3.240.0080.03512.72
5.3.230.0030.04112.71
5.3.220.0080.03512.68
5.3.210.0040.04112.68
5.3.200.0100.03612.68
5.3.190.0080.03612.68
5.3.180.0080.03412.67
5.3.170.0060.03612.67
5.3.160.0060.03812.68
5.3.150.0080.03612.67
5.3.140.0060.03612.66
5.3.130.0060.04112.66
5.3.120.0060.04012.66
5.3.110.0080.03912.66
5.3.100.0070.03712.12
5.3.90.0050.03812.10
5.3.80.0060.05112.09
5.3.70.0110.03312.09
5.3.60.0060.03812.07
5.3.50.0060.03712.02
5.3.40.0070.03512.02
5.3.30.0060.03611.98
5.3.20.0050.03611.76
5.3.10.0050.03611.73
5.3.00.0060.03611.71
5.2.170.0040.0309.21
5.2.160.0040.0299.21
5.2.150.0060.0289.22
5.2.140.0050.0309.21
5.2.130.0040.0309.18
5.2.120.0050.0299.18
5.2.110.0050.0329.19
5.2.100.0030.0309.18
5.2.90.0050.0289.18
5.2.80.0050.0299.17
5.2.70.0040.0319.17
5.2.60.0050.0319.12
5.2.50.0030.0329.10
5.2.40.0040.0299.07
5.2.30.0060.0289.05
5.2.20.0040.0299.04
5.2.10.0030.0308.94
5.2.00.0030.0338.80
5.1.60.0050.0228.09
5.1.50.0050.0288.08
5.1.40.0030.0268.07
5.1.30.0050.0298.41
5.1.20.0020.0328.44
5.1.10.0020.0288.16
5.1.00.0020.0278.16
5.0.50.0030.0216.64
5.0.40.0040.0186.50
5.0.30.0050.0366.31
5.0.20.0030.0206.27
5.0.10.0020.0216.25
5.0.00.0020.0336.25
4.4.90.0040.0144.78
4.4.80.0030.0204.76
4.4.70.0040.0144.75
4.4.60.0010.0164.76
4.4.50.0020.0164.77
4.4.40.0020.0254.70
4.4.30.0040.0154.76
4.4.20.0020.0174.85
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0040.0134.63
4.3.80.0040.0234.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0030.0153.30
4.3.20.0040.0193.28
4.3.10.0030.0193.23
4.3.00.0170.0137.04

preferences:
63.11 ms | 401 KiB | 5 Q