3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = array('k1 = a1','k1 = k2'); echo ($where != '' AND count($where) >=1) ? " WHERE ".implode(" ", $where) : 'fuck';

preferences:
47.6 ms | 402 KiB | 5 Q