3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $query = 'SELECT * FROM some_table WHERE'; $a1 = array("1","2","3"); $a2 = array("a"); $a3 = array(); echo "a1 is: $query implode('AND',$a1)";
based on CmPmP
Output for 5.6.38 - 7.3.0rc3
Notice: Array to string conversion in /in/Boa9D on line 7 a1 is: SELECT * FROM some_table WHERE implode('AND',Array)