3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** from http://php.net/manual/en/function.array-unique.php : BY DEFAULT: Note: Two elements are considered equal if and only if (string) $elem1 === (string) $elem2 i.e. when the string representation is the same, the first element will be used. */ //this will include false and 0, but will not include '' and null: var_dump(array_unique([ false,0,'',null] ));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> bool(false) [1]=> int(0) }

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