3v4l.org

run code in 300+ PHP versions simultaneously
<? $yourArray = array('first_key'=> 'First', 2, 3, 4, 5); $keys = array_keys($yourArray); echo "Key = ".$keys[0];

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.20.0130.00620.57
8.4.10.0040.00422.29
8.3.140.0070.00718.23
8.3.130.0000.00818.28
8.3.120.0080.00020.64
8.3.110.0080.00020.94
8.3.100.0090.00016.53
8.3.90.0180.00026.77
8.3.80.0090.00016.50
8.3.70.0140.00016.58
8.3.60.0120.00318.18
8.3.50.0130.00317.34
8.3.40.0030.01318.64
8.3.30.0090.00618.50
8.3.20.0040.00420.63
8.3.10.0040.00421.87
8.3.00.0080.00020.90
8.2.260.0000.00718.32
8.2.250.0000.00818.50
8.2.240.0090.00317.07
8.2.230.0100.01022.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0040.00716.63
8.2.190.0090.00616.58
8.2.180.0120.00418.29
8.2.170.0140.00022.96
8.2.160.0070.01022.01
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.80
8.2.110.0030.00720.95
8.2.100.0070.00417.78
8.2.90.0030.00618.22
8.2.80.0000.00817.97
8.2.70.0090.00017.78
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0070.00317.97
8.2.30.0080.00017.79
8.2.20.0000.00817.92
8.2.10.0040.00418.98
8.2.00.0050.00218.16
8.1.310.0070.01116.75
8.1.300.0050.00516.16
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0000.00922.25
8.1.230.0070.00422.82
8.1.220.0040.00417.74
8.1.210.0000.00818.92
8.1.200.0040.00417.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0030.00618.45
8.1.160.0000.00818.65
8.1.150.0000.00818.74
8.1.140.0000.00818.93
8.1.130.0030.00317.32
8.1.120.0030.00517.34
8.1.110.0040.00417.31
8.1.100.0060.00317.34
8.1.90.0030.00617.25
8.1.80.0040.00417.30
8.1.70.0000.00717.34
8.1.60.0040.00417.44
8.1.50.0040.00417.39
8.1.40.0040.00417.38
8.1.30.0170.00417.40
8.1.20.0090.00817.40
8.1.10.0080.00717.33
8.1.00.0110.00517.33
8.0.300.0050.00219.93
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0030.00517.09
8.0.260.0000.00720.05
8.0.250.0080.00016.82
8.0.240.0030.00316.83
8.0.230.0000.00816.88
8.0.220.0030.00316.75
8.0.210.0020.00516.62
8.0.200.0030.00316.71
8.0.190.0000.00816.82
8.0.180.0040.00416.68
8.0.170.0040.00416.69
8.0.160.0050.00816.64
8.0.150.0080.00516.62
8.0.140.0110.00216.63
8.0.130.0080.00414.98
8.0.120.0060.00616.63
8.0.110.0050.00716.68
8.0.100.0070.00616.72
8.0.90.0080.00516.67
8.0.80.0100.01016.75
8.0.70.0080.00516.68
8.0.60.0090.00516.75
8.0.50.0070.00616.66
8.0.30.0100.00816.83
8.0.20.0130.00616.79
8.0.10.0110.00416.90
8.0.00.0080.00816.74
7.4.330.0060.00016.79
7.4.320.0000.00616.38
7.4.300.0030.00316.44
7.4.290.0070.00016.25
7.4.280.0060.00616.41
7.4.270.0050.00416.35
7.4.260.0090.00216.40
7.4.250.0100.00316.44
7.4.240.0080.00516.36
7.4.230.0090.00316.30
7.4.220.0090.00416.32
7.4.210.0130.00416.41
7.4.200.0070.00616.39
7.4.190.0100.00616.44
7.4.180.0130.00016.25
7.4.160.0080.00916.40
7.4.150.0100.00516.37
7.4.140.0090.00916.82
7.4.130.0080.00716.28
7.4.120.0090.00816.34
7.4.110.0090.00616.32
7.4.100.0120.00516.33
7.4.90.0070.00716.16
7.4.80.0100.00717.30
7.4.70.0090.00616.23
7.4.60.0080.00516.30
7.4.50.0080.00516.23
7.4.40.0090.00716.19
7.4.30.0050.00816.14
7.4.20.0100.00516.17
7.4.10.0120.00216.34
7.4.00.0100.00515.72
7.3.330.0070.00514.60
7.3.320.0120.00014.68
7.3.310.0090.00416.00
7.3.300.0130.00016.09
7.3.290.0070.00616.11
7.3.280.0070.00916.07
7.3.270.0090.00716.12
7.3.260.0090.00916.24
7.3.250.0100.00616.17
7.3.240.0080.00816.24
7.3.230.0090.00816.19
7.3.220.0140.00215.99
7.3.210.0120.00516.00
7.3.200.0110.00516.11
7.3.190.0120.00616.14
7.3.180.0080.00916.15
7.3.170.0120.00416.04
7.3.160.0110.00516.16
7.3.150.0090.00715.97
7.3.140.0100.00516.10
7.3.130.0070.01016.04
7.3.120.0110.00716.08
7.3.110.0050.01016.03
7.3.100.0100.00615.54
7.3.90.0070.00915.52
7.3.80.0070.00715.52
7.3.70.0090.00615.55
7.3.60.0070.00715.61
7.3.50.0100.00615.40
7.3.40.0080.00815.25
7.3.30.0090.00615.15
7.3.20.0200.00715.59
7.3.10.0210.00715.57
7.3.00.0180.00915.61
7.2.340.0090.00716.15
7.2.330.0110.00616.25
7.2.320.0100.00716.23
7.2.310.0090.00816.24
7.2.300.0090.00716.23
7.2.290.0080.00916.24
7.2.280.0100.00616.24
7.2.270.0130.00416.21
7.2.260.0100.00816.21
7.2.250.0100.00716.31
7.2.240.0080.00716.29
7.2.230.0070.00915.68
7.2.220.0070.01015.60
7.2.210.0050.01015.63
7.2.200.0100.00615.76
7.2.190.0090.00615.66
7.2.180.0090.00815.54
7.2.170.0070.01015.52
7.2.160.0070.00915.34
7.2.150.0260.00615.83
7.2.140.0210.00715.90
7.2.130.0210.00815.92
7.2.120.0210.00715.85
7.2.110.0230.00715.88
7.2.100.0250.00815.82
7.2.90.0240.00815.87
7.2.80.0290.00615.82
7.2.70.0250.00715.86
7.2.60.0230.00815.84
7.2.50.0250.00715.80
7.2.40.0240.00915.86
7.2.30.0300.00815.95
7.2.20.0340.00715.82
7.2.10.0250.00615.85
7.2.00.0260.00515.87
7.1.330.0110.00515.24
7.1.320.0090.00714.72
7.1.310.0090.00814.67
7.1.300.0070.00915.07
7.1.290.0100.00715.05
7.1.280.0100.00714.80
7.1.270.0240.00714.67
7.1.260.0220.00614.71
7.1.250.0180.00814.75
7.1.240.0080.00815.84
7.1.230.0130.00315.82
7.1.220.0110.00415.97
7.1.210.0090.00815.90
7.1.200.0100.00715.88
7.1.190.0090.01015.91
7.1.180.0070.00915.73
7.1.170.0140.00315.83
7.1.160.0080.01015.84
7.1.150.0130.00715.93
7.1.140.0140.00815.87
7.1.130.0090.00715.93
7.1.120.0120.00615.81
7.1.110.0100.00715.89
7.1.100.0090.00815.77
7.1.90.0130.00215.83
7.1.80.0100.00615.93
7.1.70.0080.00715.64
7.1.60.0090.00815.85
7.1.50.0150.00415.85
7.1.40.0100.00915.93
7.1.30.0060.01215.96
7.1.20.0100.00715.83
7.1.10.0080.00815.79
7.1.00.0070.00815.81

preferences:
19.04 ms | 403 KiB | 5 Q