3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = array_fill(0, count($ids), '?'); var_dump($t);
Output for 7.2.0
Notice: Undefined variable: ids in /in/8fj75 on line 3 Warning: count(): Parameter must be an array or an object that implements Countable in /in/8fj75 on line 3 array(0) { }
Output for 5.6.8 - 7.1.10
Notice: Undefined variable: ids in /in/8fj75 on line 3 array(0) { }
Output for 5.3.19 - 5.5.35
Notice: Undefined variable: ids in /in/8fj75 on line 3 Warning: array_fill(): Number of elements must be positive in /in/8fj75 on line 3 bool(false)