3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(0 => 100, "color" => "red"); $keys = array_keys($array); print_r($keys[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.0080.00317.46
8.3.140.0070.01016.71
8.3.130.0030.00618.45
8.3.120.0090.00019.00
8.3.110.0070.00420.94
8.3.100.0030.00624.06
8.3.90.0120.00326.77
8.3.80.0110.00016.63
8.3.70.0110.00416.58
8.3.60.0150.00616.50
8.3.50.0070.00721.99
8.3.40.0120.00318.76
8.3.30.0040.01118.68
8.3.20.0070.00020.26
8.3.10.0040.00423.66
8.3.00.0040.00817.68
8.2.260.0130.00616.88
8.2.250.0060.00316.66
8.2.240.0000.00916.89
8.2.230.0040.00422.58
8.2.220.0050.00537.54
8.2.210.0050.00326.77
8.2.200.0060.00616.50
8.2.190.0180.00316.58
8.2.180.0140.00718.29
8.2.170.0080.00818.82
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00519.36
8.2.110.0000.00920.47
8.2.100.0100.00317.78
8.2.90.0040.00417.91
8.2.80.0040.00417.97
8.2.70.0060.00317.80
8.2.60.0000.00718.22
8.2.50.0000.00818.10
8.2.40.0080.00019.23
8.2.30.0040.00418.17
8.2.20.0070.00017.67
8.2.10.0000.00718.03
8.2.00.0040.00417.72
8.1.310.0100.00016.61
8.1.300.0060.00918.23
8.1.290.0030.00618.88
8.1.280.0140.00025.92
8.1.270.0030.00623.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0110.01120.77
8.1.230.0040.00720.86
8.1.220.0040.00417.74
8.1.210.0000.00819.10
8.1.200.0000.00917.22
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0000.00717.75
8.1.160.0000.00721.91
8.1.150.0000.00818.58
8.1.140.0050.00317.38
8.1.130.0010.00617.63
8.1.120.0030.00417.35
8.1.110.0070.00417.31
8.1.100.0030.00417.34
8.1.90.0020.00617.40
8.1.80.0050.00418.31
8.1.70.0010.00618.28
8.1.60.0060.00518.38
8.1.50.0020.00617.45
8.1.40.0020.00617.45
8.1.30.0020.00618.41
8.1.20.0030.00518.44
8.1.10.0030.00418.42
8.1.00.0060.00218.32
8.0.300.0000.00721.75
8.0.290.0000.00716.63
8.0.280.0000.00718.29
8.0.270.0030.00316.66
8.0.260.0020.00517.78
8.0.250.0050.00217.75
8.0.240.0050.00217.76
8.0.230.0010.00617.72
8.0.220.0050.00217.64
8.0.210.0060.00117.58
8.0.200.0030.00517.12
8.0.190.0040.00417.14
8.0.180.0050.00217.68
8.0.170.0030.00517.64
8.0.160.0050.00417.67
8.0.150.0040.00417.64
8.0.140.0030.00517.70
8.0.130.0020.00515.84
8.0.120.0040.00417.66
8.0.110.0040.00417.63
8.0.100.0050.00317.05
8.0.90.0020.00517.02
8.0.80.0080.00417.61
8.0.70.0020.00717.59
8.0.60.0030.00417.65
8.0.50.0040.00317.55
8.0.30.0100.00717.64
8.0.20.0070.00917.77
8.0.10.0000.00717.82
8.0.00.0080.00817.46
7.4.330.0040.00116.20
7.4.320.0070.00516.90
7.4.300.0080.00616.91
7.4.290.0120.00416.93
7.4.280.0100.00516.94
7.4.270.0130.00016.89
7.4.260.0080.00716.96
7.4.250.0050.00716.94
7.4.240.0090.00116.81
7.4.230.0080.00416.85
7.4.220.0130.00316.95
7.4.210.0100.00416.95
7.4.200.0050.00516.93
7.4.190.0090.00417.37
7.4.180.0120.00217.37
7.4.160.0100.00616.81
7.4.150.0060.01117.39
7.4.140.0100.00917.69
7.4.130.0090.00716.79
7.4.120.0080.00816.70
7.4.110.0120.00616.87
7.4.100.0080.01116.85
7.4.90.0110.00616.86
7.4.80.0070.01118.38
7.4.70.0120.00816.90
7.4.60.0130.00616.86
7.4.50.0050.00616.97
7.4.40.0110.00516.83
7.4.30.0160.00016.82
7.4.20.0150.00017.37
7.4.10.0070.00717.37
7.4.00.0100.00815.73
7.3.330.0030.00815.25
7.3.320.0070.00315.21
7.3.310.0050.00616.74
7.3.300.0100.00216.79
7.3.290.0080.00616.83
7.3.280.0070.01016.49
7.3.270.0110.00517.39
7.3.260.0120.00516.72
7.3.250.0110.01016.57
7.3.240.0130.00816.89
7.3.230.0090.00716.88
7.3.220.0160.00017.37
7.3.210.0120.00716.87
7.3.200.0110.00518.38
7.3.190.0080.00916.81
7.3.180.0100.00816.83
7.3.170.0090.00816.82
7.3.160.0140.00516.86
7.3.150.0110.00417.37
7.3.140.0110.00517.37
7.3.130.0170.00017.37
7.3.120.0080.00815.61
7.3.110.0090.00816.10
7.3.100.0100.00616.15
7.3.90.0090.00715.97
7.3.80.0090.00816.01
7.3.70.0120.00216.10
7.3.60.0070.00616.06
7.3.50.0090.00716.07
7.3.40.0090.00516.11
7.3.30.0090.00615.88
7.3.20.0120.00217.28
7.3.10.0060.00816.99
7.3.00.0080.00617.09
7.2.340.0100.00717.37
7.2.330.0100.00716.81
7.2.320.0140.00216.87
7.2.310.0130.00317.00
7.2.300.0130.00316.84
7.2.290.0100.01017.02
7.2.280.0090.00917.37
7.2.270.0140.00317.37
7.2.260.0130.00317.37
7.2.250.0070.00916.26
7.2.240.0110.00716.12
7.2.230.0080.00816.14
7.2.220.0080.00716.00
7.2.210.0070.00816.22
7.2.200.0110.00416.14
7.2.190.0070.00716.05
7.2.180.0080.00716.03
7.2.170.0090.00516.20
7.2.160.0090.00516.22
7.2.150.0090.00717.43
7.2.140.0100.00717.48
7.2.130.0090.00517.30
7.2.120.0080.00717.34
7.2.110.0080.00617.29
7.2.100.0060.00917.13
7.2.90.0060.00917.32
7.2.80.0080.00717.20
7.2.70.0090.00417.35
7.2.60.0070.00817.11
7.2.50.0080.00717.21
7.2.40.0100.00617.32
7.2.30.0070.00917.12
7.2.20.0090.00517.38
7.2.10.0070.00717.23
7.2.00.0060.00717.77
7.1.330.0070.01016.63
7.1.320.0080.00816.54
7.1.310.0120.00216.65
7.1.300.0070.00516.58
7.1.290.0080.00516.46
7.1.280.0120.00316.57
7.1.270.0070.00616.54
7.1.260.0120.00416.54
7.1.250.0080.00716.24
7.1.240.0090.00416.55
7.1.230.0050.00716.68
7.1.220.0100.00116.64
7.1.210.0100.00516.42
7.1.200.0080.00616.32
7.1.190.0070.00616.46
7.1.180.0110.00416.58
7.1.170.0100.00516.52
7.1.160.0090.00216.49
7.1.150.0050.01016.45
7.1.140.0070.00416.54
7.1.130.0120.00316.62
7.1.120.0110.00316.60
7.1.110.0100.00416.51
7.1.100.0050.00917.17
7.1.90.0070.00516.53
7.1.80.0050.00816.55
7.1.70.0060.00716.84
7.1.60.0080.00916.70
7.1.50.0090.00616.72
7.1.40.0050.00816.63
7.1.30.0080.00616.65
7.1.20.0080.00716.70
7.1.10.0040.00816.59
7.1.00.0060.00616.56
7.0.330.0090.00416.17
7.0.320.0070.00516.38
7.0.310.0090.00216.22
7.0.300.0070.00716.26
7.0.290.0080.00416.38
7.0.280.0120.00116.33
7.0.270.0110.00416.38
7.0.260.0070.00616.34
7.0.250.0050.00816.33
7.0.240.0060.00816.31
7.0.230.0090.00316.32
7.0.220.0090.00416.43
7.0.210.0050.00816.43
7.0.200.0060.00616.46
7.0.190.0050.00516.43
7.0.180.0070.00616.32
7.0.170.0070.00716.34
7.0.160.0060.00516.29
7.0.150.0070.00416.28
7.0.140.0060.00816.32
7.0.130.0080.00416.47
7.0.120.0070.00616.46
7.0.110.0040.00816.39
7.0.100.0080.00616.39
7.0.90.0050.00816.39
7.0.80.0090.00516.37
7.0.70.0060.00716.25
7.0.60.0070.00416.22
7.0.50.0060.00616.37
7.0.40.0080.00315.20
7.0.30.0040.00915.14
7.0.20.0050.00715.21
7.0.10.0060.00615.23
7.0.00.0060.00415.23
5.6.400.0090.00715.94
5.6.390.0120.00315.93
5.6.380.0080.00515.69
5.6.370.0110.00515.96
5.6.360.0090.00315.70
5.6.350.0060.00915.84
5.6.340.0100.00515.80
5.6.330.0080.00515.74
5.6.320.0020.01115.73
5.6.310.0050.00715.88
5.6.300.0080.02117.47
5.6.290.0080.01917.58
5.6.280.0080.02017.60
5.6.270.0070.01817.41
5.6.260.0050.02017.45
5.6.250.0040.02017.53
5.6.240.0070.02117.45
5.6.230.0100.01717.44
5.6.220.0060.02117.56
5.6.210.0070.01617.40
5.6.200.0050.01817.50
5.6.190.0070.01817.55
5.6.180.0060.01817.58
5.6.170.0030.02017.61
5.6.160.0050.02017.46
5.6.150.0090.01417.44
5.6.140.0110.02917.46
5.6.130.0070.01817.49
5.6.120.0070.01817.54
5.6.110.0060.01817.52
5.6.100.0070.02017.43
5.6.90.0050.02017.49
5.6.80.0070.01617.32
5.6.70.0020.02117.25
5.6.60.0040.01917.33
5.6.50.0070.01517.32
5.6.40.0070.01717.25
5.6.30.0060.01617.25
5.6.20.0020.02217.17
5.6.10.0090.01817.24
5.6.00.0050.01617.26
5.5.380.0060.02317.41
5.5.370.0100.01917.47
5.5.360.0070.02017.42
5.5.350.0060.02517.42
5.5.340.0050.02317.68
5.5.330.0100.01817.67
5.5.320.0070.02217.68
5.5.310.0050.02217.71
5.5.300.0070.03217.68
5.5.290.0070.02517.61
5.5.280.0050.02717.68
5.5.270.0080.02217.74
5.5.260.0090.02017.61
5.5.250.0100.01917.60
5.5.240.0090.01917.37
5.5.230.0040.02717.39
5.5.220.0040.02417.43
5.5.210.0070.02017.38
5.5.200.0040.02317.38
5.5.190.0050.02317.38
5.5.180.0080.02117.21
5.5.170.0130.00017.37
5.5.160.0050.02817.29
5.5.150.0030.02517.34
5.5.140.0060.02217.42
5.5.130.0050.02417.39
5.5.120.0020.02517.38
5.5.110.0060.02517.32
5.5.100.0040.02617.30
5.5.90.0020.02417.34
5.5.80.0060.02017.37
5.5.70.0080.02317.18
5.5.60.0070.01917.29
5.5.50.0060.01917.32
5.5.40.0060.02517.22
5.5.30.0070.02417.32
5.5.20.0050.02417.22
5.5.10.0110.01717.30
5.5.00.0070.02217.27
5.4.450.0050.02718.28
5.4.440.0060.02118.36
5.4.430.0040.02418.34
5.4.420.0050.02818.35
5.4.410.0100.02418.34
5.4.400.0040.02118.27
5.4.390.0060.02218.23
5.4.380.0070.02318.10
5.4.370.0040.02118.21
5.4.360.0040.02318.11
5.4.350.0160.02018.27
5.4.340.0060.02118.27
5.4.330.0080.00417.37
5.4.320.0070.02118.27
5.4.310.0050.02118.23
5.4.300.0070.02018.23
5.4.290.0060.02118.21
5.4.280.0070.02218.19
5.4.270.0070.01918.27
5.4.260.0080.02618.18
5.4.250.0050.02218.17
5.4.240.0040.02318.17
5.4.230.0040.02018.14
5.4.220.0040.02218.19
5.4.210.0070.02518.25
5.4.200.0060.02418.14
5.4.190.0000.03118.17
5.4.180.0020.02518.18
5.4.170.0090.01618.20
5.4.160.0040.03018.20
5.4.150.0080.01818.17
5.4.140.0070.02016.89
5.4.130.0030.02216.96
5.4.120.0070.02216.92
5.4.110.0050.01916.86
5.4.100.0080.01717.02
5.4.90.0080.02016.92
5.4.80.0070.01917.02
5.4.70.0160.01516.96
5.4.60.0070.01817.02
5.4.50.0020.02416.98
5.4.40.0040.02216.88
5.4.30.0070.01816.85
5.4.20.0060.01916.98
5.4.10.0070.01716.87
5.4.00.0040.02016.60
5.3.290.0050.02316.10
5.3.280.0000.02316.10
5.3.270.0040.02216.10
5.3.260.0070.02016.10
5.3.250.0060.02016.10
5.3.240.0040.02416.10
5.3.230.0080.01816.10
5.3.220.0070.01916.10
5.3.210.0030.02316.10
5.3.200.0050.02016.10
5.3.190.0090.02016.10
5.3.180.0080.01716.10
5.3.170.0060.01916.10
5.3.160.0040.02316.10
5.3.150.0040.02216.10
5.3.140.0030.02216.10
5.3.130.0070.02116.10
5.3.120.0050.02016.10
5.3.110.0020.02516.10
5.3.100.0060.01916.10
5.3.90.0050.02016.10
5.3.80.0050.02216.10
5.3.70.0030.02116.10
5.3.60.0040.02116.10
5.3.50.0050.03016.10
5.3.40.0050.03016.10
5.3.30.0040.02116.10
5.3.20.0060.02016.10
5.3.10.0080.01716.10
5.3.00.0020.03116.10

preferences:
29.9 ms | 403 KiB | 5 Q