3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['a' => 1, 'b' => 2, 0, 'f' => 4, '-f' => 5]; ksort($array); /** Array ( [-f] => 5 [0] => 0 [a] => 1 [b] => 2 [f] => 4 ) */ ?>

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.5.30.0080.01018.11
8.5.20.0090.00819.24
8.5.10.0130.00416.71
8.5.00.0120.00919.77
8.4.180.0100.01219.43
8.4.170.0090.01223.80
8.4.160.0080.00923.74
8.4.150.0070.00516.71
8.4.140.0090.01217.34
8.4.130.0110.01017.68
8.4.120.0080.01120.38
8.4.110.0110.00517.79
8.4.100.0100.01018.86
8.4.90.0120.00822.47
8.4.80.0120.00818.61
8.4.70.0100.00817.59
8.4.60.0130.00718.57
8.4.50.0290.00718.96
8.4.40.0230.00119.13
8.4.30.0280.00719.00
8.4.20.0160.00517.26
8.4.10.0250.00417.65
8.3.300.0140.00620.52
8.3.290.0080.01219.93
8.3.280.0070.00318.34
8.3.270.0140.00516.34
8.3.260.0120.00816.68
8.3.250.0040.00418.90
8.3.240.0120.00517.20
8.3.230.0040.00416.73
8.3.220.0120.00718.68
8.3.210.0130.00616.50
8.3.200.0050.00416.24
8.3.190.0220.00618.21
8.3.180.0310.00916.51
8.3.170.0260.00416.22
8.3.160.0160.00516.47
8.3.150.0180.00416.34
8.3.140.0180.00416.05
8.3.130.0200.00216.73
8.3.120.0150.00516.32
8.3.110.0150.00616.64
8.3.100.0160.00316.39
8.3.90.0150.00616.64
8.3.80.0150.00616.45
8.3.70.0200.00216.41
8.3.60.0130.00716.31
8.3.50.0170.00416.30
8.3.40.0180.00117.24
8.3.30.0100.00617.55
8.3.20.0140.00417.21
8.3.10.0190.00717.28
8.3.00.0040.00717.36
8.2.300.0140.00518.13
8.2.290.0110.00720.47
8.2.280.0280.00516.73
8.2.270.0240.00316.30
8.2.260.0230.00516.62
8.2.250.0110.00616.38
8.2.240.0170.00416.32
8.2.230.0180.00516.52
8.2.220.0130.00316.34
8.2.210.0150.00216.25
8.2.200.0120.00616.41
8.2.190.0150.00216.45
8.2.180.0110.00616.56
8.2.170.0150.00317.66
8.2.160.0160.00217.57
8.2.150.0140.00517.44
8.2.140.0290.00417.29
8.2.130.0220.00619.19
8.2.120.0310.01119.46
8.2.110.0170.00417.74
8.2.100.0230.00717.45
8.2.90.0210.00317.18
8.2.80.0170.00217.33
8.2.70.0160.00416.98
8.2.60.0140.00517.44
8.2.50.0130.00617.31
8.2.40.0190.00516.91
8.2.30.0130.00717.53
8.2.20.0170.00117.50
8.2.10.0120.00517.26
8.2.00.0160.00217.28
8.1.340.0110.00817.50

preferences:
43.02 ms | 833 KiB | 5 Q