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); ?>
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/SttNP on line 3 Warning: array_unique() expects parameter 1 to be array, null given in /in/SttNP on line 3
Output for hhvm-3.15.4
Warning: explode() expects parameter 2 to be string, array given in /in/SttNP on line 3 Warning: Invalid operand type was used: expects array(s) in /in/SttNP on line 3