3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 0 => 'nested array', 1 => 'nested array', 2 => 'nested array', 3 => 'nested array', 6 => 'nested array', 7 => 'nested array', ); var_dump(key(array_diff(array_keys(array_values($arr)), array_keys($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.49
8.3.30.0070.00719.09
8.3.20.0070.00720.16
8.3.10.0070.00022.11
8.3.00.0040.00422.57
8.2.170.0130.00722.96
8.2.160.0070.00720.47
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0110.00726.16
8.2.120.0070.00019.77
8.2.110.0040.00422.19
8.2.100.0110.00021.01
8.2.90.0040.00419.13
8.2.80.0000.00819.39
8.2.70.0060.00317.50
8.2.60.0000.00917.92
8.2.50.0080.00018.07
8.2.40.0040.00418.02
8.2.30.0040.00417.90
8.2.20.0050.00317.59
8.2.10.0050.00317.59
8.2.00.0030.00617.53
8.1.270.0000.00820.27
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00323.76
8.1.230.0040.00719.16
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00017.50
8.1.180.0070.00020.07
8.1.170.0000.00918.57
8.1.160.0000.00722.19
8.1.150.0000.00718.49
8.1.140.0040.00417.37
8.1.130.0070.00017.75
8.1.120.0000.00717.38
8.1.110.0040.00417.44
8.1.100.0000.00817.43
8.1.90.0040.00417.39
8.1.80.0000.00817.27
8.1.70.0030.00317.35
8.1.60.0030.00617.37
8.1.50.0000.00817.44
8.1.40.0030.00617.38
8.1.30.0040.00417.56
8.1.20.0040.00417.43
8.1.10.0040.00417.41
8.1.00.0100.00317.28
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0030.00618.28
8.0.270.0030.00317.07
8.0.260.0000.00616.70
8.0.250.0040.00416.78
8.0.240.0000.00816.89
8.0.230.0070.00016.77
8.0.220.0000.00716.71
8.0.210.0030.00316.75
8.0.200.0030.00316.75
8.0.190.0030.00516.88
8.0.180.0000.00716.90
8.0.170.0060.00316.81
8.0.160.0000.00716.69
8.0.150.0030.00316.78
8.0.140.0000.00816.68
8.0.130.0060.00013.29
8.0.120.0030.00616.82
8.0.110.0000.00816.80
8.0.100.0070.00016.71
8.0.90.0030.00316.77
8.0.80.0070.00716.75
8.0.70.0030.00316.69
8.0.60.0080.00016.72
8.0.50.0030.00516.70
8.0.30.0080.01316.98
8.0.20.0120.00917.40
8.0.10.0050.00216.77
8.0.00.0120.00816.56
7.4.330.0020.00215.04
7.4.320.0000.00716.57
7.4.300.0000.00616.44
7.4.290.0030.00316.36
7.4.280.0000.00716.50
7.4.270.0070.00016.34
7.4.260.0060.00316.51
7.4.250.0000.00716.54
7.4.240.0050.00216.44
7.4.230.0070.00016.45
7.4.220.0130.00616.35
7.4.210.0060.00916.54
7.4.200.0030.00316.62
7.4.190.0060.00316.56
7.4.160.0140.00716.36
7.4.150.0100.00717.40
7.4.140.0050.01217.86
7.4.130.0090.00816.19
7.4.120.0060.01416.44
7.4.110.0120.00616.45
7.4.100.0220.00316.47
7.4.90.0070.01016.40
7.4.80.0080.00919.39
7.4.70.0130.00316.20
7.4.60.0120.01616.39
7.4.50.0030.00316.42
7.4.40.0080.00822.77
7.4.30.0050.01316.35
7.4.10.0090.00614.64
7.4.00.0090.00714.71
7.3.330.0050.00013.04
7.3.320.0030.00313.12
7.3.310.0000.00615.98
7.3.300.0000.00616.03
7.3.290.0120.00316.11
7.3.280.0070.00816.13
7.3.270.0070.01017.40
7.3.260.0060.01116.29
7.3.250.0120.00516.23
7.3.240.0140.00316.09
7.3.230.0100.01016.39
7.3.210.0060.00916.31
7.3.200.0070.01119.39
7.3.190.0200.00316.38
7.3.180.0030.01516.07
7.3.170.0140.00316.34
7.3.160.0110.00716.31
7.3.130.0000.01814.67
7.3.120.0030.00914.57
7.3.110.0130.00314.70
7.3.100.0030.01014.66
7.3.90.0070.01014.52
7.3.80.0030.00514.74
7.3.70.0140.00014.80
7.3.60.0110.00014.39
7.3.50.0060.00314.82
7.3.40.0090.00614.65
7.3.30.0000.01514.65
7.3.20.0060.01216.74
7.3.10.0050.01116.26
7.3.00.0080.00516.49
7.2.330.0040.01416.54
7.2.320.0070.01116.18
7.2.310.0130.00316.23
7.2.300.0090.00916.24
7.2.290.0130.00316.29
7.2.260.0070.01014.79
7.2.250.0030.01314.57
7.2.240.0040.01114.64
7.2.230.0000.01414.64
7.2.220.0150.00315.00
7.2.210.0050.00515.14
7.2.200.0060.00614.60
7.2.190.0070.00714.96
7.2.180.0060.01014.89
7.2.170.0080.00414.63
7.2.160.0030.01614.95
7.2.150.0000.01316.67
7.2.140.0120.00616.71
7.2.130.0050.00816.63
7.2.120.0060.00716.63
7.2.110.0070.00416.77
7.2.100.0020.00816.67
7.2.90.0050.00916.60
7.2.80.0050.01216.71
7.2.70.0050.00916.68
7.2.60.0090.00716.79
7.2.50.0070.00716.69
7.2.40.0040.01116.66
7.2.30.0050.00916.51
7.2.20.0080.00516.71
7.2.10.0080.00716.64
7.2.00.0010.01216.58
7.1.330.0060.00715.86
7.1.320.0030.01315.58
7.1.310.0100.00315.53
7.1.300.0090.00315.51
7.1.290.0070.00715.69
7.1.280.0100.00315.80
7.1.270.0030.01415.51
7.1.260.0060.01215.59
7.1.250.0050.00915.71
7.1.240.0030.00615.60
7.1.230.0090.00415.63
7.1.220.0050.00915.62
7.1.210.0050.00815.56
7.1.200.0010.00815.71
7.1.190.0070.00715.73
7.1.180.0040.00615.60
7.1.170.0060.00815.64
7.1.160.0070.00515.72
7.1.150.0040.00915.70
7.1.140.0070.00415.69
7.1.130.0100.00515.57
7.1.120.0020.01115.75
7.1.110.0050.00915.45
7.1.100.0050.00515.63
7.1.90.0030.01015.59
7.1.80.0090.00315.73
7.1.70.0010.00916.17
7.1.60.0070.00917.08
7.1.50.0050.00916.10
7.1.40.0040.00815.62
7.1.30.0020.00715.75
7.1.20.0040.00615.74
7.1.10.0050.00515.68
7.1.00.0060.01417.99
7.0.330.0080.00715.33
7.0.320.0040.00715.15
7.0.310.0050.00715.28
7.0.300.0050.00315.21
7.0.290.0030.01015.12
7.0.280.0050.00615.28
7.0.270.0020.00915.30
7.0.260.0090.00115.18
7.0.250.0070.00415.18
7.0.240.0050.00715.35
7.0.230.0060.00715.39
7.0.220.0000.01515.32
7.0.210.0050.00615.29
7.0.200.0030.00715.74
7.0.190.0050.00815.29
7.0.180.0040.00915.18
7.0.170.0050.00515.47
7.0.160.0050.00615.15
7.0.150.0040.00715.22
7.0.140.0050.02817.63
7.0.130.0050.00915.16
7.0.120.0050.00915.09
7.0.110.0020.01015.35
7.0.100.0060.00815.30
7.0.90.0050.00815.29
7.0.80.0020.00915.18
7.0.70.1660.02116.88
7.0.60.0070.01716.85
7.0.50.0060.01616.10
7.0.40.0040.03315.56
7.0.30.0100.01715.61
7.0.20.0120.01615.58
7.0.10.0150.02415.72
7.0.00.0040.03615.74
5.6.400.0080.00314.23
5.6.390.0060.00914.48
5.6.380.0000.01214.40
5.6.370.0090.00414.40
5.6.360.0100.00314.30
5.6.350.0080.00814.02
5.6.340.0040.00614.23
5.6.330.0060.00614.16
5.6.320.0010.00814.13
5.6.310.0060.00614.03
5.6.300.0060.00814.31
5.6.290.0020.00914.40
5.6.280.0040.03116.57
5.6.270.0050.01014.13
5.6.260.0070.00714.22
5.6.250.0020.01214.44
5.6.240.0050.00714.38
5.6.230.0090.00514.15
5.6.220.0060.00614.22
5.6.210.0110.02016.40
5.6.200.0060.03315.44
5.6.190.0050.02816.20
5.6.180.0080.02016.36
5.6.170.0120.03316.26
5.6.160.0070.02916.29
5.6.150.0040.01815.55
5.6.140.0070.03415.47
5.6.130.0050.03115.51
5.6.120.0020.03916.43
5.6.110.0080.03116.60
5.6.100.0060.03616.44
5.6.90.0040.03516.31
5.6.80.0080.02216.16
5.6.70.0130.02916.32
5.6.60.0130.00514.00
5.6.50.0090.00914.06
5.6.40.0130.00213.98
5.6.30.0180.00314.12
5.6.20.0070.00714.15
5.6.10.0090.00813.94
5.6.00.0100.00514.03
5.5.380.0060.00612.74
5.5.370.0030.00912.53
5.5.360.0050.00712.56
5.5.350.0070.03015.13
5.5.340.0040.02014.38
5.5.330.0060.03115.10
5.5.320.0060.01515.00
5.5.310.0090.03115.06
5.5.300.0070.01714.40
5.5.290.0030.03514.16
5.5.280.0030.02415.37
5.5.270.0060.02315.19
5.5.260.0090.01715.24
5.5.250.0020.02715.22
5.5.240.0100.02615.07
5.5.230.0060.00612.51
5.5.220.0080.00312.42
5.5.210.0050.00912.32
5.5.200.0030.00712.44
5.5.190.0080.00912.28
5.5.180.0050.00512.50
5.5.170.0020.01112.38
5.5.160.0090.00512.42
5.5.150.0060.00812.55
5.5.140.0050.00712.49
5.5.130.0080.00712.36
5.5.120.0040.01212.53
5.5.110.0060.00612.22
5.5.100.0070.00712.64
5.5.90.0070.00712.59
5.5.80.0040.01112.58
5.5.70.0090.00812.50
5.5.60.0050.00812.54
5.5.50.0030.00612.40
5.5.40.0080.00512.56
5.5.30.0120.00212.45
5.5.20.0060.00512.40
5.5.10.0080.00512.54
5.5.00.0060.00712.34
5.4.450.0170.02413.86
5.4.440.0310.02313.78
5.4.430.0250.02113.91
5.4.420.0060.02113.75
5.4.410.0310.02513.78
5.4.400.0290.02313.67
5.4.390.0290.02013.54
5.4.380.0110.02213.51
5.4.370.0110.01713.49
5.4.360.0140.02113.49
5.4.350.0040.01811.34
5.4.340.0080.01511.32
5.4.330.0040.00710.82
5.4.320.0050.01811.39
5.4.310.0060.01711.46
5.4.300.0060.02011.46
5.4.290.0070.02111.51
5.4.280.0060.01711.42
5.4.270.0070.01611.35
5.4.260.0040.01911.47
5.4.250.0060.02913.70
5.4.240.0050.02913.58
5.4.230.0020.02713.60
5.4.220.0070.02213.59
5.4.210.0090.02313.53
5.4.200.0060.01913.59
5.4.190.0030.02713.64
5.4.180.0060.02213.63
5.4.170.0000.03113.59
5.4.160.0050.02013.56
5.4.150.0060.02213.59
5.4.140.0070.02012.79
5.4.130.0070.02012.74
5.4.120.0060.02612.70
5.4.110.0050.02112.83
5.4.100.0030.02212.68
5.4.90.0060.02612.76
5.4.80.0050.02712.92
5.4.70.0050.02112.84
5.4.60.0030.02012.71
5.4.50.0090.02112.79
5.4.40.0060.01812.79
5.4.30.0050.02012.68
5.4.20.0040.02012.87
5.4.10.0030.02212.70
5.4.00.0080.02412.57
5.3.290.0060.01811.46
5.3.280.0090.01911.98
5.3.270.0070.02311.98
5.3.260.0020.02412.08
5.3.250.0070.02112.08
5.3.240.0040.02812.04
5.3.230.0100.01412.04
5.3.220.0020.03012.10
5.3.210.0070.02711.98
5.3.200.0050.02411.99
5.3.190.0060.02311.99
5.3.180.0030.03011.97
5.3.170.0100.02412.07
5.3.160.0060.02112.01
5.3.150.0030.02112.00
5.3.140.0040.02212.08
5.3.130.0100.01912.05
5.3.120.0040.02212.06
5.3.110.0080.02611.96
5.3.100.0050.02211.76
5.3.90.0060.02011.81
5.3.80.0040.02111.72
5.3.70.0060.02111.84
5.3.60.0050.02011.88
5.3.50.0120.01711.86
5.3.40.0070.02111.74
5.3.30.0040.02111.83
5.3.20.0060.02011.75
5.3.10.0070.01911.68
5.3.00.0070.01811.67
5.2.170.0030.02510.49
5.2.160.0010.02410.44
5.2.150.0010.02510.53
5.2.140.0080.02010.53
5.2.130.0080.01810.51
5.2.120.0040.02410.50
5.2.110.0070.02410.55
5.2.100.0050.02410.51
5.2.90.0050.02210.45
5.2.80.0080.02010.41
5.2.70.0030.02510.50
5.2.60.0020.02510.48
5.2.50.0090.02010.51
5.2.40.0130.01510.41
5.2.30.0030.02710.51
5.2.20.0030.03210.42
5.2.10.0020.02610.46
5.2.00.0050.02110.39
5.1.60.0020.0199.97
5.1.50.0000.0229.99
5.1.40.0050.01810.01
5.1.30.0060.01810.22
5.1.20.0030.02110.16
5.1.10.0050.02310.02
5.1.00.0080.0169.94
5.0.50.0000.0179.24
5.0.40.0070.0129.15
5.0.30.0050.0189.04
5.0.20.0030.0159.12
5.0.10.0050.0149.08
5.0.00.0050.0189.04
4.4.90.0020.0158.18
4.4.80.0050.0118.18
4.4.70.0070.0158.18
4.4.60.0030.0178.18
4.4.50.0010.0188.18
4.4.40.0020.0178.18
4.4.30.0020.0128.18
4.4.20.0040.0118.18
4.4.10.0030.0128.18
4.4.00.0040.0178.18
4.3.110.0030.0158.18
4.3.100.0030.0138.18
4.3.90.0010.0138.18
4.3.80.0020.0258.18
4.3.70.0000.0158.18
4.3.60.0050.0078.18
4.3.50.0050.0108.18
4.3.40.0070.0158.18
4.3.30.0020.0138.18
4.3.20.0020.0138.18
4.3.10.0030.0158.18
4.3.00.0090.0118.60

preferences:
45.3 ms | 400 KiB | 5 Q