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 mZoPb
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Fatal error: Cannot use [] for reading in /in/Oo4Rs on line 4
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Cannot use [] for reading in /in/Oo4Rs:4 Stack trace: #0 {main}
Process exited with code 255.