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) { print "$a\n"; print "$b\n"; if ($a > $b) { return ($a >= 7000 && $a < 9000) ? -1 : 1; } elseif ($b > $a) { return ($b >= 7000 && $b < 9000) ? 1 : -1; } else { return 0; } }); print_r($module_updates);
Output for git.master, git.master_jit, rfc.property-hooks
2 1000 1000 7001 2 7001 1000 8000 2 8000 7001 8000 1000 1001 1001 7000 1000 7000 2 7000 7001 7000 Array ( [8000] => update_8000 [7001] => update_7001 [7000] => update_7000 [2] => update_2 [1000] => update_1000 [1001] => update_1001 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
52.91 ms | 401 KiB | 8 Q