3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(0 => 100, "color" => "red"); print_r(array_keys($array)[1]);

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.10.0130.00317.55
8.3.140.0060.01316.79
8.3.130.0080.00318.37
8.3.120.0100.01018.63
8.3.110.0090.00620.94
8.3.100.0110.00718.15
8.3.90.0040.00426.77
8.3.80.0090.00016.50
8.3.70.0040.01116.58
8.3.60.0170.00318.30
8.3.50.0110.00821.99
8.3.40.0090.00618.75
8.3.30.0120.00619.01
8.3.20.0040.00420.16
8.3.10.0040.00423.61
8.3.00.0040.00420.95
8.2.260.0140.00716.34
8.2.250.0000.00816.57
8.2.240.0090.00019.16
8.2.230.0120.00322.58
8.2.220.0030.00624.06
8.2.210.0060.00326.77
8.2.200.0000.00816.75
8.2.190.0100.01016.58
8.2.180.0070.01025.92
8.2.170.0110.00318.82
8.2.160.0030.01020.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.93
8.2.110.0060.00322.21
8.2.100.0040.00817.70
8.2.90.0080.00017.63
8.2.80.0050.00318.03
8.2.70.0100.00317.80
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0060.00320.01
8.2.30.0060.00318.05
8.2.20.0030.00617.56
8.2.10.0000.00717.92
8.2.00.0000.00819.38
8.1.310.0070.00018.17
8.1.300.0130.00320.29
8.1.290.0060.00318.88
8.1.280.0040.01525.92
8.1.270.0130.00620.69
8.1.260.0050.00326.35
8.1.250.0050.00528.09
8.1.240.0040.00423.95
8.1.230.0110.00019.16
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.10
8.1.190.0000.00917.23
8.1.180.0060.00318.10
8.1.170.0040.00418.45
8.1.160.0040.00418.81
8.1.150.0050.00318.52
8.1.140.0000.00717.40
8.1.130.0000.00717.74
8.1.120.0000.00717.43
8.1.110.0030.00517.30
8.1.100.0000.00917.43
8.1.90.0040.00417.42
8.1.80.0030.00617.43
8.1.70.0000.00817.40
8.1.60.0060.00317.54
8.1.50.0000.00817.38
8.1.40.0050.00217.35
8.1.30.0000.00817.63
8.1.20.0000.00817.58
8.1.10.0050.00217.42
8.1.00.0000.00717.30
8.0.300.0000.00719.65
8.0.290.0000.01016.63
8.0.280.0040.00418.30
8.0.270.0000.00717.19
8.0.260.0030.00317.19
8.0.250.0000.00716.78
8.0.240.0000.01016.86
8.0.230.0030.00316.89
8.0.220.0000.00716.74
8.0.210.0040.00416.82
8.0.200.0000.00716.95
8.0.190.0000.00716.89
8.0.180.0000.00716.74
8.0.170.0040.00416.74
8.0.160.0070.00016.87
8.0.150.0000.00716.78
8.0.140.0000.00716.75
8.0.130.0030.00313.21
8.0.120.0040.00416.80
8.0.110.0040.00416.74
8.0.100.0040.00416.71
8.0.90.0070.00016.69
8.0.80.0070.01116.84
8.0.70.0040.00416.80
8.0.60.0030.00516.94
8.0.50.0070.00016.89
8.0.30.0100.00917.00
8.0.20.0160.00517.40
8.0.10.0030.00516.81
8.0.00.0070.01016.73
7.4.330.0030.00315.02
7.4.320.0040.00416.36
7.4.300.0000.00716.50
7.4.290.0000.00716.43
7.4.280.0040.00716.53
7.4.270.0020.00516.34
7.4.260.0050.00216.41
7.4.250.0040.00416.27
7.4.240.0020.00516.54
7.4.230.0000.00816.63
7.4.220.0030.01316.57
7.4.210.0000.01516.40
7.4.200.0070.00016.44
7.4.160.0070.00716.35
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0100.00916.34
7.4.120.0070.01116.47
7.4.110.0130.00816.40
7.4.100.0060.01316.37
7.4.90.0080.01016.32
7.4.80.0090.00917.91
7.4.70.0090.01216.40
7.4.60.0130.00516.35
7.4.50.0080.00716.44
7.4.40.0110.01016.29
7.4.30.0140.00416.37
7.4.20.0060.01316.32
7.4.10.0140.00516.34
7.4.00.0070.00815.64
7.3.330.0030.00313.15
7.3.320.0050.00012.94
7.3.310.0060.00016.28
7.3.300.0000.00716.22
7.3.290.0090.00616.24
7.3.280.0090.00916.19
7.3.270.0120.00417.40
7.3.260.0140.00616.14
7.3.250.0110.00716.51
7.3.240.0100.00816.37
7.3.230.0060.01216.57
7.3.220.0110.01116.37
7.3.210.0130.00816.22
7.3.200.0080.00917.76
7.3.190.0120.00616.36
7.3.180.0120.00516.19
7.3.170.0120.01016.21
7.3.160.0120.00616.40
7.3.150.0070.01116.27
7.3.140.0120.00716.20
7.3.130.0070.01016.20
7.3.120.0080.01115.41
7.3.110.0140.00316.23
7.3.100.0120.00616.15
7.3.90.0110.00816.14
7.3.80.0080.01016.32
7.3.70.0050.01316.38
7.3.60.0100.00916.21
7.3.50.0120.00316.20
7.3.40.0070.01416.27
7.3.30.0140.00515.33
7.3.20.0060.01016.17
7.3.10.0140.00316.18
7.3.00.0090.00916.39
7.2.340.0280.00716.23
7.2.330.0150.00916.44
7.2.320.0180.00816.48
7.2.310.0160.00816.53
7.2.300.0170.01316.27
7.2.290.0200.00316.48
7.2.280.0270.00316.31
7.2.270.0200.01116.27
7.2.260.0220.01016.45
7.2.250.0200.01316.15
7.2.240.0330.00016.27
7.2.230.0260.01016.43
7.2.220.0240.00616.29
7.2.210.0200.01116.32
7.2.200.0300.00616.37
7.2.190.0190.01416.40
7.2.180.0210.01116.51
7.2.170.0330.01016.41
7.2.160.0290.01016.27
7.2.150.0270.00716.41
7.2.140.0240.01216.39
7.2.130.0230.01016.50
7.2.120.0230.00616.46
7.2.110.0680.00816.40
7.2.100.0120.02016.42
7.2.90.0300.00916.45
7.2.80.0270.00316.46
7.2.70.0210.01116.37
7.2.60.0330.00416.36
7.2.50.0160.01416.42
7.2.40.0210.01416.53
7.2.30.0650.00616.41
7.2.20.0170.01416.35
7.2.10.0210.00516.49
7.2.00.0280.00616.51
7.1.330.0230.01115.44
7.1.320.0210.00715.50
7.1.310.0180.01115.64
7.1.300.0220.01015.59
7.1.290.0270.00515.78
7.1.280.0280.00815.68
7.1.270.0190.01315.54
7.1.260.0230.00615.50
7.1.250.0260.00615.59
7.1.240.0210.01015.61
7.1.230.0260.00715.52
7.1.220.0260.00315.37
7.1.210.0240.00915.59
7.1.200.0260.01115.60
7.1.190.0230.01315.47
7.1.180.0270.01415.30
7.1.170.0230.01015.50
7.1.160.0180.01315.61
7.1.150.0270.00315.67
7.1.140.0080.02515.52
7.1.130.0230.01015.54
7.1.120.0150.01415.60
7.1.110.0220.00915.58
7.1.100.0180.01215.43
7.1.90.0280.00615.48
7.1.80.0230.00715.51
7.1.70.0260.00615.43
7.1.60.0260.00415.64
7.1.50.0270.00615.46
7.1.40.0230.01015.68
7.1.30.0310.00515.37
7.1.20.0330.00415.46
7.1.10.0300.00915.63
7.1.00.0270.01415.53
7.0.330.0220.00915.23
7.0.320.0130.01615.29
7.0.310.0220.00915.00
7.0.300.0300.00315.07
7.0.290.0270.00615.04
7.0.280.0290.00315.33
7.0.270.0220.01115.02
7.0.260.0260.00315.25
7.0.250.0220.01115.17
7.0.240.0170.01115.10
7.0.230.0230.00515.40
7.0.220.0470.01015.25
7.0.210.0210.01115.29
7.0.200.0210.00915.18
7.0.190.0260.01015.27
7.0.180.0240.00815.24
7.0.170.0230.01015.05
7.0.160.0190.01315.10
7.0.150.0220.00715.09
7.0.140.0210.01515.07
7.0.130.0320.00915.24
7.0.120.0270.01115.31
7.0.110.0380.01115.16
7.0.100.0280.01315.07
7.0.90.0300.00515.07
7.0.80.0290.00715.25
7.0.70.0360.00315.08
7.0.60.0290.00615.13
7.0.50.0240.01315.08
7.0.40.0240.01515.05
7.0.30.0270.00815.16
7.0.20.0320.00415.15
7.0.10.0240.00715.11
7.0.00.0240.00815.26
5.6.400.0160.01615.99
5.6.390.0200.01315.89
5.6.380.0230.01115.91
5.6.370.0260.00715.64
5.6.360.0230.00915.80
5.6.350.0220.01116.16
5.6.340.0180.01215.79
5.6.330.0180.01416.10
5.6.320.0320.00015.95
5.6.310.0280.00816.10
5.6.300.0200.01915.90
5.6.290.0240.01215.90
5.6.280.0190.02315.96
5.6.270.0290.01016.04
5.6.260.0140.03015.98
5.6.250.0210.01715.74
5.6.240.0250.01715.75
5.6.230.0250.01515.80
5.6.220.0200.02015.64
5.6.210.0290.01016.10
5.6.200.0230.01416.02
5.6.190.0190.01915.63
5.6.180.0170.01715.66
5.6.170.0210.01015.74
5.6.160.0290.00615.77
5.6.150.0220.01915.85
5.6.140.0250.01315.76
5.6.130.0250.01315.91
5.6.120.0240.01015.95
5.6.110.0280.01015.79
5.6.100.0260.00915.90
5.6.90.0180.01715.93
5.6.80.0220.01515.71
5.6.70.0270.00315.72
5.6.60.0250.00715.68
5.6.50.0280.01115.78
5.6.40.0200.00915.84
5.6.30.0280.00715.69
5.6.20.0210.01215.75
5.6.10.0290.00315.77
5.6.00.0200.01515.65
5.5.380.0220.01615.70
5.5.370.0250.01415.84
5.5.360.0240.01515.79
5.5.350.0250.01815.91
5.5.340.0200.01715.68
5.5.330.0250.01115.83
5.5.320.0210.01415.71
5.5.310.0240.01115.72
5.5.300.0210.01215.95
5.5.290.0190.01915.65
5.5.280.0200.01815.96
5.5.270.0330.00415.67
5.5.260.0230.01615.77
5.5.250.0270.00815.92
5.5.240.0260.01715.73
5.5.230.0150.01515.93
5.5.220.0170.01615.47
5.5.210.0360.00215.61
5.5.200.0290.00615.53
5.5.190.0240.00915.80
5.5.180.0120.02315.79
5.5.170.0180.01815.69
5.5.160.0250.01015.73
5.5.150.0180.01215.82
5.5.140.0230.00815.93
5.5.130.0180.01315.80
5.5.120.0300.00415.80
5.5.110.0160.01615.74
5.5.100.0290.01015.78
5.5.90.0230.01315.98
5.5.80.0120.01615.45
5.5.70.0150.00513.34
5.5.60.0160.00613.28
5.5.50.0130.00913.27
5.5.40.0140.00713.33
5.5.30.0140.01013.34
5.5.20.0170.00813.24
5.5.10.0120.01113.42
5.5.00.0150.00813.42
5.4.450.0120.01312.69
5.4.440.0150.01112.55
5.4.430.0180.01012.59
5.4.420.0150.01112.61
5.4.410.0160.01312.73
5.4.400.0240.00312.64
5.4.390.0130.01312.47
5.4.380.0130.01312.68
5.4.370.0150.00912.51
5.4.360.0200.01012.55
5.4.350.0180.00612.56
5.4.340.0190.01312.61
5.4.330.0190.00912.54
5.4.320.0150.01012.60
5.4.310.0190.00512.43
5.4.300.0090.01512.50
5.4.290.0190.00912.41
5.4.280.0140.01112.69
5.4.270.0190.00812.49
5.4.260.0120.01612.39
5.4.250.0160.01212.45
5.4.240.0210.00712.51
5.4.230.0120.00611.70
5.4.220.0080.00911.66
5.4.210.0080.01311.55
5.4.200.0090.01111.76
5.4.190.0130.00611.54
5.4.180.0100.00611.62
5.4.170.0080.00811.71
5.4.160.0140.00611.62
5.4.150.0150.00511.70
5.4.140.0140.00511.79
5.4.130.0110.00511.67
5.4.120.0110.00811.68
5.4.110.0130.00411.61
5.4.100.0130.00411.66
5.4.90.0100.00711.66
5.4.80.0120.00611.64
5.4.70.0140.00211.71
5.4.60.0120.00511.67
5.4.50.0100.00811.65
5.4.40.0080.01111.73
5.4.30.0090.00811.64
5.4.20.0110.00811.70
5.4.10.0120.00511.73
5.4.00.0130.00511.87
5.3.290.0200.00612.76
5.3.280.0090.01111.35
5.3.270.0100.00911.38
5.3.260.0110.00811.40
5.3.250.0120.00711.41
5.3.240.0120.00511.29
5.3.230.0090.01111.45
5.3.220.0120.00711.34
5.3.210.0100.00611.37
5.3.200.0110.00611.36
5.3.190.0070.00911.41
5.3.180.0100.00711.55
5.3.170.0110.00811.56
5.3.160.0110.00711.55
5.3.150.0160.00311.68
5.3.140.0100.00611.51
5.3.130.0150.00311.56
5.3.120.0100.00711.43
5.3.110.0120.00611.48
5.3.100.0110.00611.49
5.3.90.0110.00511.54
5.3.80.0080.00911.41
5.3.70.0070.00911.33
5.3.60.0110.00611.37
5.3.50.0050.01311.44
5.3.40.0110.00611.40
5.3.30.0120.00611.47
5.3.20.0080.00811.28
5.3.10.0060.01111.15
5.3.00.0130.00511.26

preferences:
59.27 ms | 403 KiB | 5 Q