3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $strSql = 'INSERT INTO `tblStudy` '. '('.implode(',', $keys).') VALUES '. '('.implode(',', $placeholders).')'; echo $strSql;
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: keys in /in/09fQ8 on line 3 Warning: implode(): Invalid arguments passed in /in/09fQ8 on line 3 Notice: Undefined variable: placeholders in /in/09fQ8 on line 4 Warning: implode(): Invalid arguments passed in /in/09fQ8 on line 4 INSERT INTO `tblStudy` () VALUES ()
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: keys in /in/09fQ8 on line 3 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/09fQ8 on line 3 Notice: Undefined variable: placeholders in /in/09fQ8 on line 4 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/09fQ8 on line 4 INSERT INTO `tblStudy` () VALUES ()
Output for 5.2.5 - 5.4.45
Warning: implode(): Invalid arguments passed in /in/09fQ8 on line 3 Warning: implode(): Invalid arguments passed in /in/09fQ8 on line 4 INSERT INTO `tblStudy` () VALUES ()
Output for 5.2.3 - 5.2.4
Warning: implode(): Bad arguments. in /in/09fQ8 on line 3 Warning: implode(): Bad arguments. in /in/09fQ8 on line 4 INSERT INTO `tblStudy` () VALUES ()
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: implode() [<a href='function.implode'>function.implode</a>]: Bad arguments. in <b>/in/09fQ8</b> on line <b>3</b><br /> <br /> <b>Warning</b>: implode() [<a href='function.implode'>function.implode</a>]: Bad arguments. in <b>/in/09fQ8</b> on line <b>4</b><br /> INSERT INTO `tblStudy` () VALUES ()
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: implode(): Bad arguments. in <b>/in/09fQ8</b> on line <b>3</b><br /> <br /> <b>Warning</b>: implode(): Bad arguments. in <b>/in/09fQ8</b> on line <b>4</b><br /> INSERT INTO `tblStudy` () VALUES ()
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: implode() [<a href='http://www.php.net/function.implode'>function.implode</a>]: Bad arguments. in <b>/in/09fQ8</b> on line <b>3</b><br /> <br /> <b>Warning</b>: implode() [<a href='http://www.php.net/function.implode'>function.implode</a>]: Bad arguments. in <b>/in/09fQ8</b> on line <b>4</b><br /> INSERT INTO `tblStudy` () VALUES ()