3v4l.org

run code in 300+ PHP versions simultaneously
<?php $module_updates = array( 2 => 'update_2', 1000 => 'update_1000', 7001 => 'update_7001', 8000 => 'update_8000', 1001 => 'update_1001', 7000 => 'update_7000', ); uksort($module_updates, function($a, $b) { if ($a >= 7000 && $a < 9000) { $a -= 7000; } if ($b >= 7000 && $b < 9000) { $b -= 7000; } return ($a == $b) ? 0 : ($a > $b : 1 : -1); }); print_r($module_updates);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28, 5.5.0 - 5.5.12
Parse error: syntax error, unexpected ':' in /in/SQIEu on line 17
Process exited with code 255.

preferences:
191.51 ms | 1395 KiB | 78 Q