3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ["a" => 2, "b" => 1, "c" => 3], ["a" => 1, "b" => 3, "c" => 2], ["a" => 1, "b" => 2, "c" => 3], ["a" => 2, "b" => 2, "c" => 3], ]; array_multisort( array_column($data, "a"), SORT_ASC, array_column($data, "b"), SORT_ASC, $data ); var_export($data);
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => array ( 'a' => 1, 'b' => 2, 'c' => 3, ), 1 => array ( 'a' => 1, 'b' => 3, 'c' => 2, ), 2 => array ( 'a' => 2, 'b' => 1, 'c' => 3, ), 3 => array ( 'a' => 2, 'b' => 2, 'c' => 3, ), )

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:
51.78 ms | 406 KiB | 5 Q