3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataPoints = array( array('1' => '33','2' => 'dave','3' => '367'), array('1' => '168','2' => 'susan','3' => '56788'), array('1' => '99','2' => 'tim','3' => '6') ); function cmp($a, $b){ if ($a[2] == $b[2]) { return 0; } return ($a[2] < $b[2]) ? -1 : 1; } print_r($dataPoints); usort($dataPoints, "cmp"); print_r($dataPoints);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [1] => 33 [2] => dave [3] => 367 ) [1] => Array ( [1] => 168 [2] => susan [3] => 56788 ) [2] => Array ( [1] => 99 [2] => tim [3] => 6 ) ) Array ( [0] => Array ( [1] => 33 [2] => dave [3] => 367 ) [1] => Array ( [1] => 168 [2] => susan [3] => 56788 ) [2] => Array ( [1] => 99 [2] => tim [3] => 6 ) )

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