3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = 'a|b|c|d'; $name1 = explode('|', $name); $name2 = implode(' ', $name); echo $name2;
based on g9d5P
Output for 5.2.5 - 7.2.0
Warning: implode(): Invalid arguments passed in /in/n6Kk1 on line 4
Output for 4.3.2 - 5.2.4
Warning: implode(): Bad arguments. in /in/n6Kk1 on line 4
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/n6Kk1 on line 4