3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $q_key = array('a', 'b', 'c'); $q_value = array('d', 'e', 'f'); $q = "INSERT INTO `form_content_element_tweak` ({implode(',', $q_key)}) VALUES(".implode(",", $q_val).")"; echo $q;
Output for 5.4.0 - 7.2.0
Notice: Array to string conversion in /in/Bi3b7 on line 4 Notice: Undefined variable: q_val in /in/Bi3b7 on line 4 Warning: implode(): Invalid arguments passed in /in/Bi3b7 on line 4 INSERT INTO `form_content_element_tweak` ({implode(',', Array)}) VALUES()
Output for 5.2.5 - 5.3.29
Notice: Undefined variable: q_val in /in/Bi3b7 on line 4 Warning: implode(): Invalid arguments passed in /in/Bi3b7 on line 4 INSERT INTO `form_content_element_tweak` ({implode(',', Array)}) VALUES()
Output for 5.0.4 - 5.2.4
Notice: Undefined variable: q_val in /in/Bi3b7 on line 4 Warning: implode(): Bad arguments. in /in/Bi3b7 on line 4 INSERT INTO `form_content_element_tweak` ({implode(',', Array)}) VALUES()
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: q_val in /in/Bi3b7 on line 4 Warning: implode(): Bad arguments. in /in/Bi3b7 on line 4 INSERT INTO `form_content_element_tweak` ({implode(',', Array)}) VALUES()
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: q_val in /in/Bi3b7 on line 4 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/Bi3b7 on line 4 INSERT INTO `form_content_element_tweak` ({implode(',', Array)}) VALUES()