3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Revese this string."; $string_array = implode($string); foreach($string as $value) { echo $val; }
Output for 5.2.5 - 7.2.0
Warning: implode(): Argument must be an array in /in/jV2Th on line 5 Warning: Invalid argument supplied for foreach() in /in/jV2Th on line 7
Output for 4.3.2 - 4.3.10, 4.4.0 - 5.2.4
Warning: implode(): Argument to implode must be an array. in /in/jV2Th on line 5 Warning: Invalid argument supplied for foreach() in /in/jV2Th on line 7
Output for 4.3.11
Warning: implode(): Argument to implode must be an array. in /in/jV2Th on line 5
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Argument to implode must be an array. in /in/jV2Th on line 5 Warning: Invalid argument supplied for foreach() in /in/jV2Th on line 7