3v4l.org

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