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[3] == $b[3]) { return 0; } return ($a[3] < $b[3]) ? -1 : 1; } usort($dataPoints, "cmp"); print_r($dataPoints[0]);
Output for git.master, git.master_jit, rfc.property-hooks
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:
49.52 ms | 401 KiB | 8 Q