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 cmp($a, $b); }); print_r($module_updates);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function cmp() in /in/D3bZY:17 Stack trace: #0 [internal function]: {closure}(2, 1000) #1 /in/D3bZY(10): uksort(Array, Object(Closure)) #2 {main} thrown in /in/D3bZY on line 17
Process exited with code 255.

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:
43.8 ms | 401 KiB | 8 Q