3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fields = range(50,150); $g = implode(',', array_pad(array(), count($fields), '?') . ')'); echo $d;
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/adQgH on line 4 Warning: implode(): Invalid arguments passed in /in/adQgH on line 4 Notice: Undefined variable: d in /in/adQgH on line 5
Output for hhvm-3.10.0 - 3.12.0
Notice: Array to string conversion in /in/adQgH on line 4 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/adQgH on line 4 Notice: Undefined variable: d in /in/adQgH on line 5
Output for 5.2.5 - 5.3.29
Warning: implode(): Invalid arguments passed in /in/adQgH on line 4 Notice: Undefined variable: d in /in/adQgH on line 5
Output for 5.0.4 - 5.2.4
Warning: implode(): Bad arguments. in /in/adQgH on line 4 Notice: Undefined variable: d in /in/adQgH on line 5
Output for 4.3.2 - 5.0.3
Warning: implode(): Bad arguments. in /in/adQgH on line 4 Notice: Undefined variable: d in /in/adQgH on line 5
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/adQgH on line 4 Notice: Undefined variable: d in /in/adQgH on line 5