3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $where = 'haha'; echo ($where != '' AND count($where) >=1) ? " WHERE ".implode(" ", $where) : 'fuck';
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/VNSTI on line 3 Warning: implode(): Invalid arguments passed in /in/VNSTI on line 3 WHERE
Output for 5.2.5 - 7.1.10
Warning: implode(): Invalid arguments passed in /in/VNSTI on line 3 WHERE
Output for 4.3.2 - 5.2.4
Warning: implode(): Bad arguments. in /in/VNSTI on line 3 WHERE
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/VNSTI on line 3 WHERE