3v4l.org

run code in 500+ 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"]; var_dump(array_unique($array, SORT_REGULAR));
Output for rfc.property-hooks, git.master_jit, git.master
array(10) { [0]=> string(3) "red" ["color"]=> string(3) "red" [1]=> int(78) [3]=> int(12) [5]=> bool(false) [6]=> NULL [10]=> int(1) [13]=> float(2.12) [15]=> int(8) [16]=> string(2) "-s" }

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:
47.03 ms | 2800 KiB | 4 Q