3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phones = "89521632782,89521632782,89521632782,12"; $qwerty = array(explode(",", $phones)); $result = array_unique($qwerty); print_r($result); ?>
based on mZoPb
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Array ( [0] => Array ( [0] => 89521632782 [1] => 89521632782 [2] => 89521632782 [3] => 12 ) )
Output for hhvm-3.15.4
Notice: Array to string conversion in /in/j3KIm on line 4 Array ( [0] => Array ( [0] => 89521632782 [1] => 89521632782 [2] => 89521632782 [3] => 12 ) )