3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('tttt'=> 100, "color" => "red"); print_r(array_keys($array)[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.3.60.0120.00918.55
8.3.50.0090.00921.89
8.3.40.0100.01018.84
8.3.30.0000.01419.04
8.3.20.0040.00420.07
8.3.10.0050.00223.66
8.3.00.0080.00019.10
8.2.180.0150.00316.38
8.2.170.0100.00322.96
8.2.160.0140.00020.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0150.00026.16
8.2.120.0040.00422.18
8.2.110.0100.00022.26
8.2.100.0090.00317.63
8.2.90.0070.00019.05
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0050.00317.92
8.2.50.0090.00018.07
8.2.40.0030.00619.95
8.2.30.0050.00217.93
8.2.20.0000.00817.70
8.2.10.0070.00018.06
8.2.00.0040.00417.57
8.1.280.0110.00425.92
8.1.270.0060.00322.09
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0060.00323.92
8.1.230.0070.00419.03
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.10
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0080.00020.29
8.1.160.0070.00021.98
8.1.150.0020.00518.78
8.1.140.0080.00017.38
8.1.130.0030.00317.74
8.1.120.0050.00217.43
8.1.110.0000.00817.42
8.1.100.0040.00417.44
8.1.90.0030.00317.38
8.1.80.0040.00417.46
8.1.70.0000.00717.34
8.1.60.0040.00417.40
8.1.50.0080.00017.46
8.1.40.0040.00417.52
8.1.30.0030.00517.48
8.1.20.0000.00817.64
8.1.10.0040.00417.48
8.1.00.0030.00517.30
8.0.300.0060.00318.77
8.0.290.0070.00016.63
8.0.280.0050.00318.29
8.0.270.0040.00417.11
8.0.260.0060.00017.25
8.0.250.0050.00216.92
8.0.240.0070.00016.94
8.0.230.0080.00016.74
8.0.220.0000.00716.82
8.0.210.0000.00716.78
8.0.200.0000.00716.90
8.0.190.0000.00716.87
8.0.180.0070.00416.86
8.0.170.0050.00316.75
8.0.160.0030.00616.80
8.0.150.0030.00316.66
8.0.140.0050.00316.82
8.0.130.0000.00613.27
8.0.120.0040.00416.83
8.0.110.0000.00816.73
8.0.100.0030.00516.83
8.0.90.0020.00516.82
8.0.80.0000.01916.71
8.0.70.0000.00716.82
8.0.60.0030.00316.86
8.0.50.0050.00316.73
8.0.30.0130.00717.04
8.0.20.0090.00917.40
8.0.10.0040.00416.89
8.0.00.0050.01316.74
7.4.330.0000.00515.08
7.4.320.0060.00016.45
7.4.300.0000.00616.45
7.4.290.0060.00316.46
7.4.280.0000.00716.54
7.4.270.0000.00616.40
7.4.260.0000.00716.45
7.4.250.0040.00416.46
7.4.240.0050.00216.45
7.4.230.0040.00416.47
7.4.220.0070.01316.51
7.4.210.0080.01216.41
7.4.200.0000.00716.65
7.4.160.0110.00516.55
7.4.150.0160.00317.40
7.4.140.0130.00617.86
7.4.130.0100.00616.29
7.4.120.0090.00916.40
7.4.110.0070.01016.46
7.4.100.0030.01616.49
7.4.90.0070.01116.52
7.4.80.0080.01419.39
7.4.70.0130.00716.51
7.4.60.0160.00316.42
7.4.50.0000.00816.22
7.4.40.0060.00916.35
7.4.30.0070.01016.37
7.4.00.0070.00914.87
7.3.330.0050.00012.91
7.3.320.0020.00213.09
7.3.310.0070.00016.02
7.3.300.0070.00016.16
7.3.290.0060.01116.23
7.3.280.0040.01416.20
7.3.270.0090.01517.40
7.3.260.0060.01116.48
7.3.250.0110.00516.33
7.3.240.0140.01016.50
7.3.230.0090.00916.62
7.3.210.0080.00816.33
7.3.200.0120.00919.39
7.3.190.0090.00616.17
7.3.180.0080.00816.48
7.3.170.0030.01316.45
7.3.160.0130.00316.35
7.3.120.0040.01414.68
7.3.110.0090.00615.04
7.3.100.0030.01314.92
7.3.90.0060.01014.67
7.3.80.0040.01114.89
7.3.70.0070.00814.50
7.3.60.0060.00314.75
7.3.50.0070.00714.79
7.3.40.0060.00614.80
7.3.30.0060.00914.73
7.3.20.0040.01116.53
7.3.10.0070.00716.63
7.3.00.0040.00816.62
7.2.330.0100.01416.26
7.2.320.0090.00916.46
7.2.310.0100.00716.52
7.2.300.0080.01316.58
7.2.290.0140.00716.71
7.2.250.0070.01115.13
7.2.240.0090.01214.64
7.2.230.0060.00814.55
7.2.220.0100.00015.13
7.2.210.0030.01315.13
7.2.200.0080.00414.63
7.2.190.0000.01414.64
7.2.180.0030.01015.01
7.2.170.0100.00314.69
7.2.60.0070.00716.61
7.2.00.0000.00819.14
7.1.330.0080.00515.72
7.1.320.0040.00415.72
7.1.310.0030.01015.55
7.1.300.0000.00815.78
7.1.290.0060.00615.73
7.1.280.0080.00415.83
7.1.270.0070.00715.68
7.1.260.0030.01415.96
7.1.200.0140.01115.89
7.1.100.0030.01018.02
7.1.70.0090.00317.03
7.1.60.0030.02019.32
7.1.50.0320.00334.66
7.1.00.0100.07022.52
7.0.200.0030.00516.68
7.0.140.0030.07022.04
7.0.60.0100.08019.91
7.0.50.0030.04317.85
7.0.40.0170.03320.06
7.0.30.0270.08320.30
7.0.20.0400.07320.16
7.0.10.0070.04320.16
7.0.00.0070.08720.08
5.6.280.0030.07021.14
5.6.210.0100.08020.72
5.6.200.0130.07318.17
5.6.190.0070.04020.61
5.6.180.0170.03720.57
5.6.170.0230.08320.54
5.6.160.0100.06320.52
5.6.150.0000.08018.20
5.6.140.0030.05018.12
5.6.130.0100.07018.09
5.6.120.0030.06321.13
5.6.110.0070.05320.97
5.6.100.0070.07721.12
5.6.90.0100.05021.09
5.6.80.0030.08720.51
5.6.70.4500.03720.35
5.5.350.0330.07320.39
5.5.340.0130.07717.91
5.5.330.0130.08020.06
5.5.320.0270.07320.24
5.5.310.0230.08020.12
5.5.300.0030.08017.90
5.5.290.0030.08717.91
5.5.280.0130.04320.97
5.5.270.0100.04720.88
5.5.260.0100.07320.86
5.5.250.0130.07320.46
5.5.240.4230.03020.14
5.4.450.0700.05319.49
5.4.440.0700.05719.54
5.4.430.0600.07019.31
5.4.420.0770.05319.23
5.4.410.0930.05319.45
5.4.400.0870.09319.28
5.4.390.0870.06019.21
5.4.380.0070.05319.11
5.4.370.0830.04719.16
5.4.360.0630.06319.19
5.4.350.0470.06319.19
5.4.340.0060.03411.96
5.4.320.0030.03812.45
5.4.310.0050.03812.45
5.4.300.0060.03712.45
5.4.290.0060.04412.45
5.4.280.0070.03412.34
5.4.270.0060.03612.35
5.4.260.0080.03712.34
5.4.250.0060.03812.35
5.4.240.0040.03812.34
5.4.230.0060.03712.34
5.4.220.0030.03712.34
5.4.210.0060.03412.34
5.4.200.0070.03712.34
5.4.190.0050.03612.33
5.4.180.0050.03712.33
5.4.170.0060.03612.35
5.4.160.0060.03512.34
5.4.150.0040.04312.34
5.4.140.0060.04512.02
5.4.130.0170.05712.01
5.4.120.0060.05011.97
5.4.110.0050.04511.96
5.4.100.0050.03911.96
5.4.90.0060.04411.96
5.4.80.0060.05011.96
5.4.70.0050.04811.96
5.4.60.0100.03911.96
5.4.50.0070.04111.96
5.4.40.0080.04511.95
5.4.30.0070.04711.94
5.4.20.0090.04211.95
5.4.10.0110.04211.95
5.4.00.0080.04511.43
5.3.290.0100.03912.80
5.3.280.0100.03412.71
5.3.270.0100.04712.72
5.3.260.0060.04312.71
5.3.250.0040.03912.72
5.3.240.0110.04512.72
5.3.230.0140.04712.71
5.3.220.0060.04712.68
5.3.210.0100.04712.68
5.3.200.0060.05212.68
5.3.190.0100.03912.68
5.3.180.0050.03712.68
5.3.170.0040.03712.67
5.3.160.0070.03612.68
5.3.150.0080.03512.68
5.3.140.0040.04212.66
5.3.130.0060.04212.65
5.3.120.0030.04212.66
5.3.110.0040.04612.66
5.3.100.0050.04112.12
5.3.90.0020.04012.08
5.3.80.0090.03412.08
5.3.70.0040.03812.07
5.3.60.0050.03712.06
5.3.50.0070.03412.00
5.3.40.0080.03412.00
5.3.30.0050.03611.95
5.3.20.0060.03511.73
5.3.10.0050.03511.70
5.3.00.0060.03611.68
5.2.170.0050.0319.18
5.2.160.0070.0279.18
5.2.150.0030.0329.18
5.2.140.0060.0309.18
5.2.130.0040.0299.14
5.2.120.0010.0339.13
5.2.110.0050.0289.14
5.2.100.0040.0299.14
5.2.90.0020.0339.14
5.2.80.0040.0309.14
5.2.70.0050.0299.14
5.2.60.0060.0319.09
5.2.50.0040.0309.06
5.2.40.0050.0349.04
5.2.30.0040.0329.01
5.2.20.0040.0309.01
5.2.10.0040.0308.92
5.2.00.0070.0268.78
5.1.60.0040.0258.06
5.1.50.0050.0248.07
5.1.40.0050.0248.05
5.1.30.0050.0268.40
5.1.20.0070.0258.42
5.1.10.0050.0258.14
5.1.00.0030.0278.14
5.0.50.0060.0186.63
5.0.40.0030.0206.48
5.0.30.0020.0346.29
5.0.20.0010.0226.27
5.0.10.0050.0196.24
5.0.00.0020.0316.23
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0030.0164.75
4.4.60.0020.0184.75
4.4.50.0020.0224.77
4.4.40.0030.0254.71
4.4.30.0040.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0154.84
4.4.00.0020.0254.76
4.3.110.0040.0174.67
4.3.100.0020.0154.66
4.3.90.0080.0274.63
4.3.80.0060.0264.58
4.3.70.0020.0154.63
4.3.60.0050.0124.62
4.3.50.0010.0164.63
4.3.40.0030.0234.54
4.3.30.0020.0163.29
4.3.20.0040.0143.25
4.3.10.0010.0173.22
4.3.00.0270.0206.89

preferences:
41.39 ms | 401 KiB | 5 Q