3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,-1,0,NULL,2,0,-2);$b = array(NULL,-1,0,1,2,-2, 0);$c = array(0,1,-1,0,-2,2,NULL);echo "asort(array(1,-1,0,NULL,2,0,-2))\n";asort($a);print_r($a);echo "\nasort(array(NULL,-1,0,1,2,-2, 0))\n";asort($b);print_r($b);echo "\nasort(array(0,1,-1,0,-2,2,NULL))\n";asort($c);print_r($c);
Output for git.master, git.master_jit, rfc.property-hooks
asort(array(1,-1,0,NULL,2,0,-2)) Array ( [6] => -2 [1] => -1 [2] => 0 [3] => [5] => 0 [0] => 1 [4] => 2 ) asort(array(NULL,-1,0,1,2,-2, 0)) Array ( [0] => [5] => -2 [1] => -1 [2] => 0 [6] => 0 [3] => 1 [4] => 2 ) asort(array(0,1,-1,0,-2,2,NULL)) Array ( [4] => -2 [2] => -1 [0] => 0 [3] => 0 [6] => [1] => 1 [5] => 2 )

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