3v4l.org

run code in 300+ PHP versions simultaneously
<?php class array_sort { protected $_asort; public function __construct(array $asort) { $this->_asort = $asort; } public function alhsort() { $sorted = $this->_asort; sort($sorted); return $sorted; } } $sortarray = new array_sort(array(11, -2, 4, 35, 0, 8, -9)); print_r($sortarray->alhsort()); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => -9 [1] => -2 [2] => 0 [3] => 4 [4] => 8 [5] => 11 [6] => 35 )

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:
40.96 ms | 401 KiB | 8 Q