3v4l.org

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