3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phones = "89521632782,89521632782,89521632782,12"; $qwerty = array($phones); $qqwe1 = explode(",", $qwerty); $result = array_unique($qqwe1); print_r($qwerty); ?>
based on uHEdY
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: explode() expects parameter 2 to be string, array given in /in/mZoPb on line 4 Warning: array_unique() expects parameter 1 to be array, null given in /in/mZoPb on line 5 Array ( [0] => 89521632782,89521632782,89521632782,12 )
Output for hhvm-3.15.4
Warning: explode() expects parameter 2 to be string, array given in /in/mZoPb on line 4 Warning: Invalid operand type was used: expects array(s) in /in/mZoPb on line 5 Array ( [0] => 89521632782,89521632782,89521632782,12 )