3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'key-0' => 40, 'key-1' => 50, 'key-2' => 10, 'key-3' => 20, 'key-4' => 20, 'key-5' => 30, 'key-6' => 10, 'key-7' => 20, 'key-8' => 40, 'key-9' => 40, ); uasort($array, fn($a, $b) => $a <=> $b); var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'key-2' => 10, 'key-6' => 10, 'key-3' => 20, 'key-4' => 20, 'key-7' => 20, 'key-5' => 30, 'key-0' => 40, 'key-8' => 40, 'key-9' => 40, 'key-1' => 50, )

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:
27.89 ms | 405 KiB | 5 Q