3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'str' => 'foo', 'empty' => '', 'zero' => 0, 'one' => 1, 'null' => null, 'false' => false, 'true' => true, ]; var_export(array_keys($array, null));

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.140.0070.01116.34
8.3.130.0120.00418.73
8.3.120.0150.00419.00
8.3.110.0080.01220.94
8.3.100.0030.00616.41
8.3.90.0110.00716.33
8.3.80.0070.00417.97
8.3.70.0110.00716.63
8.3.60.0080.00816.63
8.3.50.0120.00616.67
8.3.40.0100.00320.34
8.3.30.0070.00720.17
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.250.0080.00016.28
8.2.240.0060.00317.16
8.2.230.0030.00622.58
8.2.220.0090.00024.06
8.2.210.0120.00626.77
8.2.200.0060.00318.29
8.2.190.0060.00916.75
8.2.180.0130.00316.48
8.2.170.0040.01122.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0050.00226.16
8.2.120.0080.00419.23
8.2.110.0030.00620.38
8.2.100.0090.00317.66
8.2.90.0080.00017.78
8.2.80.0000.00919.02
8.2.70.0150.00479.33
8.2.60.0130.00579.33
8.2.50.0110.00779.33
8.2.40.0120.00479.33
8.2.30.0090.00779.33
8.2.20.0140.00279.33
8.2.10.0110.00579.33
8.2.00.0120.00479.33
8.1.300.0060.00317.79
8.1.290.0030.00630.84
8.1.280.0130.00325.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.01
8.1.230.0120.00020.71
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0120.00479.33
8.1.190.0110.00679.33
8.1.180.0130.00479.33
8.1.170.0130.00479.33
8.1.160.0130.00679.33
8.1.150.0140.00279.33
8.1.140.0110.00579.33
8.1.130.0110.00579.33
8.1.120.0130.00479.33
8.1.110.0110.00579.33
8.1.100.0120.00579.33
8.1.90.0110.00579.33
8.1.80.0110.00479.33
8.1.70.0100.00779.33
8.1.60.0120.00579.33
8.1.50.0120.00479.33
8.1.40.0130.00479.33
8.1.30.0130.00379.33
8.1.20.0080.00879.33
8.1.10.0120.00579.33
8.1.00.0110.00679.33
8.0.300.0040.00420.11
8.0.290.0110.00679.33
8.0.280.0090.00679.33
8.0.270.0080.00879.33
8.0.260.0060.01079.33
8.0.250.0150.00179.33
8.0.240.0130.00479.33
8.0.230.0120.00579.33
8.0.220.0120.00479.33
8.0.210.0080.00879.33
8.0.200.0110.00579.33
8.0.190.0110.00679.33
8.0.180.0100.00679.33
8.0.170.0090.00779.33
8.0.160.0150.00279.33
8.0.150.0100.00779.33
8.0.140.0100.00779.33
8.0.130.0120.00379.33
8.0.120.0110.00479.33
8.0.110.0110.00479.33
8.0.100.0100.00679.33
8.0.90.0100.00579.33
8.0.80.0100.00779.33
8.0.70.0110.00579.33
8.0.60.0140.00279.33
8.0.50.0120.00479.33
8.0.30.0110.00579.33
8.0.20.0120.00379.33
8.0.10.0110.00479.33

preferences:
25.97 ms | 403 KiB | 5 Q