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 Boa9D
Output for 5.6.38 - 7.3.0rc3
a1 is: SELECT * FROM some_table WHERE 1AND2AND3