3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ids = array(1, 2, 3, 7, 8, 9); $inQuery = implode(',', array_fill(0, count($ids), $ids)); print_r($inQuery); ?>
based on 2I81N
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/A6YWR on line 3 Notice: Array to string conversion in /in/A6YWR on line 3 Notice: Array to string conversion in /in/A6YWR on line 3 Notice: Array to string conversion in /in/A6YWR on line 3 Notice: Array to string conversion in /in/A6YWR on line 3 Notice: Array to string conversion in /in/A6YWR on line 3 Array,Array,Array,Array,Array,Array