<?php
$result = [
[1540211782, 'd.swf'],
[1540211782, 'a.swf'],
[1540211800, 'b.swf'],
[1540211600, 'c.swf'],
[1540211500, 'e.swf'],
[1540211900, 'f.swf'],
];
sort($result);
var_export($result);
- Output for 5.4.0 - 5.4.16, 5.5.15, 7.3.33, 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- array (
0 =>
array (
0 => 1540211500,
1 => 'e.swf',
),
1 =>
array (
0 => 1540211600,
1 => 'c.swf',
),
2 =>
array (
0 => 1540211782,
1 => 'a.swf',
),
3 =>
array (
0 => 1540211782,
1 => 'd.swf',
),
4 =>
array (
0 => 1540211800,
1 => 'b.swf',
),
5 =>
array (
0 => 1540211900,
1 => 'f.swf',
),
)
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
array (
0 =>
array (
0 => 1540211500,
1 => 'e.swf',
),
1 =>
array (
0 => 1540211600,
1 => 'c.swf',
),
2 =>
array (
0 => 1540211782,
1 => 'a.swf',
),
3 =>
array (
0 => 1540211782,
1 => 'd.swf',
),
4 =>
array (
0 => 1540211800,
1 => 'b.swf',
),
5 =>
array (
0 => 1540211900,
1 => 'f.swf',
),
)
- Output for 4.4.4, 5.3.12
- Parse error: syntax error, unexpected '[' in /in/ncpFI on line 3
Process exited with code 255. - Output for 4.3.1, 5.0.0
- Parse error: parse error, unexpected '[' in /in/ncpFI on line 3
Process exited with code 255.
preferences:
117.72 ms | 401 KiB | 129 Q