3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["red", "color" => "red", 78, 78, 12, "12", false, null, false, 0, true, 1, 0, null, 2.12, "2.12", 8, "-s"]; sort($array); var_dump($array); // var_dump(array_unique($array, SORT_REGULAR));
Output for git.master, git.master_jit, rfc.property-hooks
array(18) { [0]=> bool(false) [1]=> NULL [2]=> bool(false) [3]=> string(2) "-s" [4]=> int(0) [5]=> int(0) [6]=> NULL [7]=> int(12) [8]=> string(2) "12" [9]=> int(78) [10]=> int(78) [11]=> string(3) "red" [12]=> bool(true) [13]=> int(1) [14]=> float(2.12) [15]=> string(4) "2.12" [16]=> int(8) [17]=> string(3) "red" }

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