3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [3 => 'blah', 0 => 'wheee']; $firstKey = array_key_first($array); var_dump( $array[$firstKey] );

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.0110.01118.43
8.3.50.0120.00916.47
8.3.40.0060.01018.80
8.3.30.0160.00618.71
8.3.20.0000.01518.64
8.3.10.0000.00821.87
8.3.00.0050.00923.36
8.2.180.0070.01416.63
8.2.170.0130.00322.96
8.2.160.0100.00319.13
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00319.23
8.2.110.0050.00521.02
8.2.100.0030.00817.72
8.2.90.0060.00317.91
8.2.80.0040.00419.17
8.2.70.0060.00319.35
8.2.60.0000.01017.34
8.2.50.0060.00318.10
8.2.40.0040.00419.20
8.2.30.0030.00320.56
8.2.20.0050.00317.98
8.2.10.0050.00318.10
8.2.00.0000.00817.89
8.1.280.0130.01025.92
8.1.270.0080.00020.38
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00422.22
8.1.230.0060.00620.89
8.1.220.0000.00817.77
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0090.00017.10
8.1.180.0080.00018.10
8.1.170.0000.00818.57
8.1.160.0040.00418.77
8.1.150.0050.00318.81
8.1.140.0050.00218.86
8.1.130.0050.00220.31
8.1.120.0000.00717.42
8.1.110.0030.00317.40
8.1.100.0030.00317.39
8.1.90.0070.00417.29
8.1.80.0040.00417.43
8.1.70.0030.00317.36
8.1.60.0070.00317.51
8.1.50.0040.00417.44
8.1.40.0060.00317.34
8.1.30.0030.00617.43
8.1.20.0030.00517.57
8.1.10.0040.00417.50
8.1.00.0000.00817.55
8.0.300.0060.00320.09
8.0.290.0060.00316.63
8.0.280.0030.00318.43
8.0.270.0000.00717.20
8.0.260.0030.00321.86
8.0.250.0040.00416.89
8.0.240.0030.00316.92
8.0.230.0040.00416.75
8.0.220.0040.00416.87
8.0.210.0000.00716.86
8.0.200.0000.00616.78
8.0.190.0030.00916.80
8.0.180.0040.00416.87
8.0.170.0030.00616.90
8.0.160.0000.00716.70
8.0.150.0090.00316.75
8.0.140.0030.00316.66
8.0.130.0030.00313.30
8.0.120.0040.00416.82
8.0.110.0080.00016.89
8.0.100.0070.00016.82
8.0.90.0000.00816.72
8.0.80.0110.01016.82
8.0.70.0000.00716.84
8.0.60.0040.00416.80
8.0.50.0030.00516.79
8.0.30.0050.01217.12
8.0.20.0070.01117.40
8.0.10.0040.00416.84
8.0.00.0070.01216.82
7.4.330.0000.00515.55
7.4.320.0040.00416.39
7.4.300.0000.00716.30
7.4.290.0030.00316.36
7.4.280.0000.00716.48
7.4.270.0030.00316.37
7.4.260.0050.00316.53
7.4.250.0040.00416.49
7.4.240.0060.00316.44
7.4.230.0030.00316.65
7.4.220.0000.00816.56
7.4.210.0060.01116.46
7.4.200.0040.00416.19
7.4.160.0120.00516.38
7.4.140.0100.00817.86
7.4.130.0070.01416.31
7.4.120.0110.00716.42
7.4.110.0030.01316.52
7.4.100.0070.01016.33
7.4.90.0100.01016.34
7.4.80.0080.00819.39
7.4.70.0110.00716.52
7.4.60.0160.00716.38
7.4.50.0030.00616.33
7.4.40.0090.01216.57
7.4.00.0050.01114.93
7.3.330.0000.00513.11
7.3.320.0020.00213.14
7.3.310.0030.00316.05
7.3.300.0030.00316.22
7.3.290.0070.00016.20
7.3.280.0070.01016.18
7.3.260.0110.00816.26
7.3.240.0110.00916.50
7.3.230.0050.01116.31
7.3.210.0070.01016.47
7.3.200.0170.00616.20
7.3.190.0090.00616.14
7.3.180.0080.00816.23
7.3.170.0030.01316.24
7.3.160.0100.01016.36
7.3.120.0100.00714.65
7.3.110.0030.01314.92
7.3.100.0030.01314.73
7.3.90.0060.00814.61
7.3.80.0060.00914.71
7.3.70.0060.00914.68
7.3.60.0060.00314.82
7.3.50.0040.00414.91
7.3.40.0060.00914.65
7.3.30.0040.00714.69
7.3.20.0030.00716.44
7.3.10.0000.01316.50
7.3.00.0110.00416.61
7.2.330.0090.00916.34
7.2.320.0070.01116.57
7.2.310.0120.00916.73
7.2.300.0100.01016.48
7.2.290.0130.00316.40
7.2.250.0030.01014.96
7.2.240.0060.01214.95
7.2.230.0060.00314.71
7.2.220.0110.00414.71
7.2.210.0090.00015.11
7.2.200.0110.00414.93
7.2.190.0040.00714.85
7.2.180.0100.00715.07
7.2.170.0030.01314.58
7.2.100.3690.00314.46
7.2.90.3490.01414.75
7.2.80.3280.00714.46
7.2.70.3680.00314.90
7.2.60.2540.00314.95
7.2.50.2430.00314.95
7.2.40.3600.01014.52
7.2.30.2320.01015.04
7.2.20.2720.01614.84
7.2.10.2520.01014.68
7.2.00.2360.01314.78
7.1.330.0060.00715.57
7.1.320.0070.00415.50
7.1.310.0130.00015.50
7.1.300.0100.00615.43
7.1.290.0030.00915.63
7.1.280.0030.00715.40
7.1.270.0030.00615.46
7.1.260.0060.00915.52
7.1.220.3270.00313.58
7.1.210.3870.00313.70
7.1.200.2250.00313.70
7.1.190.3760.00713.55
7.1.180.3600.01013.50
7.1.170.2580.01313.84
7.1.160.2620.00313.74
7.1.150.2570.01613.52
7.1.140.2650.01013.46
7.1.130.2680.01013.56
7.1.120.3710.00313.76
7.1.110.2680.01013.58
7.1.100.2240.01613.70
7.1.90.3180.00013.51
7.1.80.2860.01013.69
7.1.70.3460.01013.46
7.1.60.3700.01331.80
7.1.50.3790.01331.37
7.1.40.3630.01031.23
7.1.30.3030.00731.68
7.1.20.2870.01031.77
7.1.10.2750.01013.69
7.1.00.2980.00713.71
5.6.380.0070.01314.34

preferences:
63.31 ms | 400 KiB | 5 Q