3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [10 => '10 (int)', 50 => '50 (int)', 'foo' => 'foo (string)']; ksort($array, SORT_NUMERIC); print_r(array_keys($array));

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.0070.00716.48
8.3.50.0110.00720.04
8.3.40.0110.00318.45
8.3.30.0070.00719.02
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0110.01125.92
8.2.170.0110.00422.96
8.2.160.0130.00322.96
8.2.150.0030.00625.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0100.00017.68
8.2.110.0030.00620.28
8.2.100.0090.00020.52
8.1.280.0090.00925.92
8.1.270.0030.00523.99
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.11
8.1.230.0000.01120.28
8.1.50.0080.00317.39

preferences:
60.8 ms | 400 KiB | 5 Q