3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Get a list of all the modules providing permissions and sort by // display name. $all_permissions = [array('title' => 'access_module_a2'), array('title' => 'access_module_a1')]; uasort($all_permissions, function (array $permission_a, array $permission_b) { return $permission_a['title'] > $permission_b['title']; }); echo var_dump($all_permissions);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /in/L762Q on line 6 array(2) { [1]=> array(1) { ["title"]=> string(16) "access_module_a1" } [0]=> array(1) { ["title"]=> string(16) "access_module_a2" } }

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