3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $terms = ['one', 'two', 'three', 'one', 'four', 'five', 'two', 'six']; // $output = array_unique($terms); $output = array_keys(array_flip($terms)); print_r($output);
based on 6E2cR
Output for 5.4.1 - 7.2.0
Array ( [0] => one [1] => two [2] => three [3] => four [4] => five [5] => six )
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/LUDAc on line 3
Process exited with code 255.