3v4l.org

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