3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(5 => 1, 12 => 2); $arr[] = 56; // This is the same as $arr[13] = 56; // at this point of the script $arr["x"] = 42; // This adds a new element to // the array with key "x" unset($arr[5]); // This removes the element from the array unset($arr); // Th 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.40.0070.00718.71
8.3.30.0070.00718.96
8.3.20.0080.00018.82
8.3.10.0050.00320.54
8.3.00.0080.00019.38
8.2.170.0040.01122.96
8.2.160.0070.01021.22
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.48
8.2.110.0030.00722.25
8.2.100.0070.00417.63
8.2.90.0050.00319.08
8.2.80.0040.00417.97
8.2.70.0040.00417.59
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0080.00020.07
8.2.30.0000.00818.00
8.2.20.0040.00417.64
8.2.10.0030.00517.71
8.2.00.0000.00717.66
8.1.270.0050.00324.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00319.14
8.1.230.0040.00722.75
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0030.00620.13
8.1.160.0000.00822.00
8.1.150.0040.00418.59
8.1.140.0040.00417.42
8.1.130.0070.00017.84
8.1.120.0030.00517.40
8.1.110.0040.00417.30
8.1.100.0000.00717.27
8.1.90.0030.00417.36
8.1.80.0000.00717.42
8.1.70.0040.00417.36
8.1.60.0050.00317.37
8.1.50.0050.00317.38
8.1.40.0000.00817.41
8.1.30.0080.00017.64
8.1.20.0000.00817.43
8.1.10.0040.00417.59
8.1.00.0040.00417.49
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0040.00418.38
8.0.270.0070.00017.07
8.0.260.0070.00016.73
8.0.250.0000.00716.87
8.0.240.0000.00716.94
8.0.230.0000.00616.86
8.0.220.0080.00016.85
8.0.210.0000.00716.84
8.0.200.0030.00316.88
8.0.190.0060.00316.98
8.0.180.0000.00716.90
8.0.170.0000.00716.93
8.0.160.0000.00816.84
8.0.150.0040.00416.74
8.0.140.0080.00016.75
8.0.130.0000.00513.34
8.0.120.0040.00416.89
8.0.110.0070.00016.88
8.0.100.0070.00016.87
8.0.90.0040.00416.80
8.0.80.0030.01316.86
8.0.70.0070.00016.76
8.0.60.0000.00716.77
8.0.50.0040.00416.79
8.0.30.0080.01217.00
8.0.20.0080.01117.06
8.0.10.0070.00017.04
8.0.00.0090.01216.57
7.4.330.0050.00012.97
7.4.320.0040.00416.59
7.4.300.0030.00316.65
7.4.290.0030.00316.51
7.4.280.0050.00516.59
7.4.270.0060.00016.50
7.4.260.0000.00513.31
7.4.250.0040.00416.55
7.4.240.0000.00716.50
7.4.230.0000.00716.42
7.4.220.0030.01916.51
7.4.210.0080.00716.53
7.4.200.0070.00016.70
7.4.190.0040.00416.54
7.4.160.0090.00616.41
7.4.150.0090.00816.30
7.4.140.0090.00816.49
7.4.130.0150.00316.40
7.4.120.0130.00316.56
7.4.110.0070.01016.38
7.4.100.0110.00616.56
7.4.90.0070.01016.38
7.4.80.0040.01919.39
7.4.70.0070.01016.46
7.4.60.0030.01316.48
7.4.50.0000.00516.61
7.4.40.0060.01016.36
7.4.30.0160.00016.39
7.4.10.0060.00316.64
7.4.00.0080.01015.56
7.3.330.0060.00013.13
7.3.320.0060.00013.23
7.3.310.0070.00016.47
7.3.300.0030.00316.36
7.3.290.0160.00416.32
7.3.280.0100.00716.44
7.3.270.0090.00916.44
7.3.260.0110.00916.36
7.3.250.0110.00616.45
7.3.240.0100.00716.49
7.3.230.0180.00016.57
7.3.210.0070.01016.59
7.3.200.0060.01116.42
7.3.190.0070.01316.30
7.3.180.0070.01016.53
7.3.170.0070.01016.43
7.3.160.0100.00616.44
7.3.130.0130.00316.56
7.3.120.0050.01215.65
7.3.110.0060.00616.20
7.3.100.0120.00316.53
7.3.90.0030.01216.31
7.3.80.0030.01016.33
7.3.70.0030.00716.34
7.3.60.0110.00716.34
7.3.50.0130.00616.37
7.3.40.0030.00616.30
7.3.30.0060.00316.32
7.3.20.0100.00718.11
7.3.10.0060.00917.05
7.3.00.0080.00517.14
7.2.330.0120.00616.70
7.2.320.0090.00916.57
7.2.310.0090.00916.50
7.2.300.0140.00316.69
7.2.290.0110.00616.47
7.2.260.0030.01016.26
7.2.250.0070.01316.64
7.2.240.0070.00716.34
7.2.230.0030.01316.57
7.2.220.0030.01116.56
7.2.210.0080.00816.30
7.2.200.0030.01316.34
7.2.190.0070.01316.30
7.2.180.0070.01016.35
7.2.170.0030.01516.52
7.2.160.0120.00016.39
7.2.150.0030.01018.20
7.2.140.0090.00918.25
7.2.130.0060.00517.13
7.2.120.0090.00717.26
7.2.110.0030.00717.17
7.2.100.0080.00717.27
7.2.90.0060.00817.27
7.2.80.0020.01217.21
7.2.70.0060.00717.40
7.2.60.0070.00817.10
7.2.50.0060.00617.26
7.2.40.0050.00917.29
7.2.30.0100.00517.30
7.2.20.0030.00917.29
7.2.10.0060.00717.27
7.2.00.0060.00717.80
7.1.330.0120.00317.45
7.1.320.0040.00817.39
7.1.310.0000.01317.41
7.1.300.0090.00917.45
7.1.290.0060.00317.43
7.1.280.0100.00317.38
7.1.270.0000.01717.32
7.1.260.0060.00317.31
7.1.250.0060.00616.32
7.1.240.0000.01817.28
7.1.230.0040.00717.30
7.1.220.0040.00717.23
7.1.210.0040.00817.24
7.1.200.0130.00416.38
7.1.190.0030.00617.25
7.1.180.0110.00417.32
7.1.170.0050.00517.27
7.1.160.0030.01017.30
7.1.150.0060.00317.40
7.1.140.0060.00917.26
7.1.130.0100.00617.27
7.1.120.0090.00917.42
7.1.110.0140.00617.23
7.1.100.0040.00917.66
7.1.90.0000.01017.43
7.1.80.0030.00717.33
7.1.70.0060.00317.27
7.1.60.0030.01017.01
7.1.50.0050.01117.04
7.1.40.0070.01017.40
7.1.30.0120.00017.08
7.1.20.0090.00317.36
7.1.10.0060.00917.51
7.1.00.0030.04119.82
7.0.330.0090.00616.82
7.0.320.0030.01017.16
7.0.310.0070.00716.88
7.0.300.0080.00816.81
7.0.290.0070.00716.88
7.0.280.0000.01416.79
7.0.270.0030.01216.90
7.0.260.0100.01017.05
7.0.250.0040.01217.04
7.0.240.0080.00817.02
7.0.230.0070.00716.98
7.0.220.0030.00617.05
7.0.210.0030.01016.91
7.0.200.0080.00816.71
7.0.190.0060.00917.04
7.0.180.0070.00717.06
7.0.170.0060.00617.11
7.0.160.0040.00416.88
7.0.150.0060.00617.21
7.0.140.0030.04319.66
7.0.130.0130.00916.91
7.0.120.0050.04219.61
7.0.110.0080.00416.95
7.0.100.0180.00016.96
7.0.90.0070.00416.91
7.0.80.0090.00017.13
7.0.70.0090.00617.01
7.0.60.0030.03518.42
7.0.50.0050.03517.42
7.0.40.0070.04517.54
7.0.30.0050.03817.45
7.0.20.0060.03317.38
7.0.10.0060.04617.48
7.0.00.0000.03617.58
5.6.400.0040.01115.78
5.6.390.0070.00815.70
5.6.380.0080.00315.95
5.6.370.0070.00716.09
5.6.360.0100.00315.92
5.6.350.0060.00615.71
5.6.340.0090.00915.96
5.6.330.0140.00315.76
5.6.320.0000.01315.66
5.6.310.0110.00415.95
5.6.300.0060.00615.96
5.6.290.0030.01015.81
5.6.280.0090.00016.11
5.6.270.0070.00715.88
5.6.260.0060.00915.89
5.6.250.0080.00415.94
5.6.240.0040.00715.84
5.6.230.0000.01115.95
5.6.220.0100.00715.88
5.6.210.0080.04018.24
5.6.200.0070.04816.97
5.6.190.0070.04718.17
5.6.180.0070.04318.31
5.6.170.0020.03418.21
5.6.160.0080.03018.17
5.6.150.0080.03718.14
5.6.140.0060.03318.07
5.6.130.0050.02418.07
5.6.120.0100.02818.09
5.6.110.0030.04618.06
5.6.100.0020.04817.99
5.6.90.0100.04217.92
5.6.80.0020.03217.85
5.6.70.0090.02517.63
5.6.60.0080.04517.63
5.6.50.0090.04017.64
5.6.40.0050.02717.76
5.6.30.0030.03317.75
5.6.20.0030.04217.94
5.6.10.0070.02817.79
5.6.00.0070.03617.64
5.5.380.0040.00915.83
5.5.370.0030.01215.84
5.5.360.0090.00615.90
5.5.350.0170.04218.12
5.5.340.0020.02517.05
5.5.330.0070.02517.94
5.5.320.0100.04318.08
5.5.310.0080.04117.98
5.5.300.0080.03117.95
5.5.290.0100.04217.91
5.5.280.0040.05017.96
5.5.270.0130.02818.06
5.5.260.0060.03017.96
5.5.250.0130.04017.80
5.5.240.0110.04117.74
5.5.230.0070.02817.66
5.5.220.0040.04817.63
5.5.210.0050.03417.66
5.5.200.0020.03117.53
5.5.190.0050.04217.65
5.5.180.0050.04217.41
5.5.170.0130.00615.71
5.5.160.0090.04617.48
5.5.150.0030.04017.73
5.5.140.0040.03617.70
5.5.130.0110.04117.58
5.5.120.0050.03917.66
5.5.110.0140.04217.48
5.5.100.0040.02817.44
5.5.90.0080.04317.67
5.5.80.0090.02117.52
5.5.70.0080.04317.58
5.5.60.0060.03417.59
5.5.50.0050.04417.61
5.5.40.0030.02617.56
5.5.30.0060.03717.67
5.5.20.0070.02917.47
5.5.10.0130.03617.42
5.5.00.0010.05217.54
5.4.450.0030.04516.05
5.4.440.0110.02215.90
5.4.430.0100.04016.09
5.4.420.0080.04015.90
5.4.410.0050.04516.01
5.4.400.0020.03115.90
5.4.390.0020.04315.83
5.4.380.0120.02515.88
5.4.370.0070.04215.85
5.4.360.0060.03915.92
5.4.350.0180.01915.92
5.4.340.0050.02715.85
5.4.330.0030.00912.69
5.4.320.0030.04715.88
5.4.310.0050.03915.88
5.4.300.0130.03515.88
5.4.290.0080.02615.84
5.4.280.0080.04115.94
5.4.270.0080.03315.93
5.4.260.0090.02015.99
5.4.250.0050.03215.91
5.4.240.0030.02715.74
5.4.230.0050.04115.93
5.4.220.0050.04415.73
5.4.210.0120.03715.89
5.4.200.0000.03215.84
5.4.190.0030.02315.88
5.4.180.0130.03215.88
5.4.170.0110.03815.88
5.4.160.0070.02715.92
5.4.150.0100.04015.79
5.4.140.0150.01314.53
5.4.130.0030.02414.52
5.4.120.0040.03814.49
5.4.110.0080.03114.53
5.4.100.0080.03814.47
5.4.90.0070.04214.42
5.4.80.0080.04014.52
5.4.70.0060.04514.47
5.4.60.0070.03814.56
5.4.50.0100.03714.45
5.4.40.0050.04414.45
5.4.30.0050.03414.49
5.4.20.0030.03914.45
5.4.10.0070.03014.48
5.4.00.0070.03714.24
5.3.290.0060.02313.82
5.3.280.0050.03013.78
5.3.270.0060.04213.76
5.3.260.0070.03913.89
5.3.250.0040.02013.83
5.3.240.0030.04513.69
5.3.230.0030.03713.73
5.3.220.0050.03013.78
5.3.210.0070.02813.71
5.3.200.0040.03213.68
5.3.190.0020.02713.75
5.3.180.0040.02413.73
5.3.170.0020.03813.81
5.3.160.0000.02913.79
5.3.150.0100.03513.74
5.3.140.0070.04013.73
5.3.130.0100.03813.84
5.3.120.0080.03913.71
5.3.110.0090.03613.83
5.3.100.0080.02313.46
5.3.90.0050.03513.47
5.3.80.0090.04013.37
5.3.70.0050.04313.36
5.3.60.0050.04013.42
5.3.50.0020.04513.38
5.3.40.0040.02513.41
5.3.30.0060.03013.36
5.3.20.0030.03913.31
5.3.10.0050.03313.16
5.3.00.0090.03013.17
5.2.170.0030.04710.97
5.2.160.0000.04011.07
5.2.150.0070.06011.09
5.2.140.0030.04011.07
5.2.130.0030.07711.25
5.2.120.0030.03311.11
5.2.110.0000.06311.09
5.2.100.0000.04311.07
5.2.90.0030.05711.09
5.2.80.0000.05711.00
5.2.70.0030.06711.05
5.2.60.0030.06011.20
5.2.50.0070.05710.98
5.2.40.0030.06310.93
5.2.30.0030.06310.85
5.2.20.0000.04710.93
5.2.10.0030.04310.86
5.2.00.0030.04010.75
5.1.60.0000.0409.96
5.1.50.0070.05010.14
5.1.40.0030.0379.98
5.1.30.0100.04310.34
5.1.20.0030.03010.38
5.1.10.0030.04710.13
5.1.00.0030.0409.96
5.0.50.0000.0308.44
5.0.40.0100.0378.38
5.0.30.0030.0538.28
5.0.20.0030.0438.28
5.0.10.0030.0438.28
5.0.00.0000.0508.28
4.4.90.0100.0278.28
4.4.80.0000.0408.28
4.4.70.0070.0308.28
4.4.60.0030.0178.28
4.4.50.0000.0338.28
4.4.40.0030.0238.28
4.4.30.0030.0338.28
4.4.20.0030.0278.28
4.4.10.0030.0208.28
4.4.00.0000.0278.28
4.3.110.0030.0308.28
4.3.100.0000.0378.28
4.3.90.0000.0338.28
4.3.80.0000.0578.28
4.3.70.0070.0338.28
4.3.60.0000.0378.28
4.3.50.0030.0308.28
4.3.40.0100.0438.28
4.3.30.0000.0208.28
4.3.20.0000.0178.28
4.3.10.0030.0338.28
4.3.00.0000.0338.28

preferences:
44.37 ms | 400 KiB | 5 Q