3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [23, 21, 83, 195, 1, 293]; usort($a, function($v1, $v2) { return $v1 <=> $v2; }); var_dump($a);
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { [0]=> int(1) [1]=> int(21) [2]=> int(23) [3]=> int(83) [4]=> int(195) [5]=> int(293) }

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.88 ms | 401 KiB | 8 Q