3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf'); $bar = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf'); ksort($foo); ksort($bar, SORT_NATURAL); var_dump($foo); var_dump($bar);
Output for git.master, git.master_jit, rfc.property-hooks
array(21) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) [5]=> int(40) [6]=> int(50) [7]=> int(66) [8]=> int(72) [9]=> string(1) "f" [10]=> string(1) "0" [11]=> string(1) "g" [12]=> int(4) [13]=> int(35) [14]=> int(5) [15]=> int(654) [16]=> int(654) [17]=> int(2) [18]=> int(2345) [19]=> int(456) [20]=> string(4) "asdf" } array(21) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) [5]=> int(40) [6]=> int(50) [7]=> int(66) [8]=> int(72) [9]=> string(1) "f" [10]=> string(1) "0" [11]=> string(1) "g" [12]=> int(4) [13]=> int(35) [14]=> int(5) [15]=> int(654) [16]=> int(654) [17]=> int(2) [18]=> int(2345) [19]=> int(456) [20]=> string(4) "asdf" }

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:
32.08 ms | 403 KiB | 8 Q