3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ [ 'id' => 1, 'score' => 200, 'results' => [ 'discipline_one' => "4:01" ], ], [ 'id' => 2, 'score' => 250, 'results' => [ 'discipline_one' => "3:50" ], ], [ 'id' => 3, 'score' => 284, 'results' => [ 'discipline_one' => "3:42" ], ], [ 'id' => 4, 'score' => 300, 'results' => [ 'discipline_one' => "4:27" ], ], ]; array_multisort(array_column(array_column($data, 'result'), 'discipline_one'), SORT_DESC, $data); var_export($data);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: Array sizes are inconsistent in /in/msgAD:34 Stack trace: #0 /in/msgAD(34): array_multisort(Array, 3, Array) #1 {main} thrown in /in/msgAD on line 34
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:
31.88 ms | 401 KiB | 8 Q