3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array("hello", "world", "foobar", "foobar"); $array = array_unique($array); print_r($array); ?>
Output for 4.3.0 - 7.1.0
Array ( [0] => hello [1] => world [2] => foobar )