3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phones = array("89521632782","89521632782","89521632782"); $result = array_unique(explode(',', $phones)); print_r($result); ?>
based on 2k3Y4
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: explode() expects parameter 2 to be string, array given in /in/ocXlf on line 3 Warning: array_unique() expects parameter 1 to be array, null given in /in/ocXlf on line 3
Output for hhvm-3.15.4
Warning: explode() expects parameter 2 to be string, array given in /in/ocXlf on line 3 Warning: Invalid operand type was used: expects array(s) in /in/ocXlf on line 3