3v4l.org

run code in 300+ PHP versions simultaneously
<?php $people = array( array ( "id" => 1, "name" => "Ken", ), array ( "id" => 2, "name" => "Anne" ), array ( "id" => 3, "name" => "Bob" ) ); uasort($people,"sort_name"); print_r($people); function sort_name($a,$b) { return $a["name"] > $b["name"]; }
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/IkoZO on line 22 Array ( [1] => Array ( [id] => 2 [name] => Anne ) [2] => Array ( [id] => 3 [name] => Bob ) [0] => Array ( [id] => 1 [name] => Ken ) )

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:
31.48 ms | 402 KiB | 8 Q