3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 1 => ['id' => 1, 'sort' => 1], 3 => ['id' => 3, 'sort' => 3], 2 => ['id' => 2, 'sort' => 2], ]; $keys = array_map(function($val) { return $val['sort']; }, $arr); array_multisort($keys, $arr); var_export($arr);

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.0090.00919.53
8.5.20.0090.00819.90
8.5.10.0080.00918.52
8.5.00.0150.00719.86
8.4.180.0140.01219.63
8.4.170.0110.01020.32
8.4.160.0150.01123.84
8.4.150.0080.00516.89
8.4.140.0140.00717.31
8.4.130.0120.00818.75
8.4.120.0050.00424.13
8.4.110.0050.00419.68
8.4.100.0160.00418.89
8.4.90.0140.00720.61
8.4.80.0070.00118.80
8.4.70.0050.00317.80
8.4.60.0140.00718.53
8.4.50.0120.00720.48
8.4.40.0090.00917.66
8.4.30.0040.00418.75
8.4.20.0130.00621.40
8.4.10.0060.00319.50
8.3.300.0120.00820.77
8.3.290.0140.00620.84
8.3.280.0100.01018.23
8.3.270.0100.01016.39
8.3.260.0120.00816.28
8.3.250.0040.00418.81
8.3.240.0050.00317.24
8.3.230.0080.00916.70
8.3.220.0070.00518.86
8.3.210.0120.00616.50
8.3.200.0070.00216.47
8.3.190.0050.00419.13
8.3.180.0080.01117.12
8.3.170.0150.00320.47
8.3.160.0100.01017.17
8.3.150.0150.00317.21
8.3.140.0090.00016.50
8.3.130.0100.00018.20
8.3.120.0080.00020.77
8.3.110.0030.00618.03
8.3.100.0070.00324.06
8.3.90.0060.00326.77
8.3.80.0060.00317.97
8.3.70.0130.00018.43
8.3.60.0250.00717.81
8.3.50.0080.00417.81
8.3.40.0140.00917.81
8.3.30.0130.01317.81
8.3.20.0200.00317.81
8.3.10.0150.00517.81
8.3.00.0190.00317.81
8.2.300.0110.00822.14
8.2.290.0130.00620.30
8.2.280.0100.01018.25
8.2.270.0140.00416.88
8.2.260.0130.00318.21
8.2.250.0080.00017.43
8.2.240.0090.00618.74
8.2.230.0030.00620.94
8.2.220.0130.00637.54
8.2.210.0040.00426.77
8.2.200.0070.00316.63
8.2.190.0170.00617.81
8.2.180.0170.00417.81
8.2.170.0200.00317.81
8.2.160.0140.00917.81
8.2.150.0170.00617.81
8.2.140.0180.00617.81
8.2.130.0260.00517.81
8.2.120.0260.00017.81
8.2.110.0250.00317.81
8.2.100.0220.00517.81
8.2.90.0310.00717.81
8.2.80.0370.00317.81
8.2.70.0310.00417.81
8.2.60.0370.00317.81
8.2.50.0220.00517.81
8.2.40.0150.00817.81
8.2.30.0150.00717.81
8.2.20.0150.00517.81
8.2.10.0160.00517.81
8.2.00.0230.00417.81
8.1.340.0160.00617.47
8.1.330.0100.00921.80
8.1.320.0120.00815.89
8.1.310.0080.01118.71
8.1.300.0090.00016.00
8.1.290.0030.00630.84
8.1.280.0200.00317.81
8.1.270.0230.00017.81
8.1.260.0200.00317.81
8.1.250.0240.00317.81
8.1.240.0200.00017.81
8.1.230.0160.00417.81
8.1.220.0110.01117.81
8.1.210.0170.00617.81
8.1.200.0200.00017.81
8.1.190.0170.00317.81
8.1.180.0160.00417.81
8.1.170.0100.01017.81
8.1.160.0170.00317.81
8.1.150.0220.00417.81
8.1.140.0180.00217.81
8.1.130.0200.00017.81
8.1.120.0130.00717.81
8.1.110.0090.01417.81
8.1.100.0120.00817.81
8.1.90.0170.00317.81
8.1.80.0190.00817.81
8.1.70.0280.00417.81
8.1.60.0250.01417.81
8.1.50.0320.01217.81
8.1.40.0340.01017.81
8.1.30.0340.01417.81
8.1.20.0360.00817.81
8.1.10.0250.00617.81
8.1.00.0190.00317.81

preferences:
42.67 ms | 994 KiB | 5 Q