3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mass = explode('', '0123'); foreach ($mass as $el) { echo $el; }
based on 1rXGH
Output for 5.2.5 - 7.2.0
Warning: explode(): Empty delimiter in /in/84R4Q on line 3 Warning: Invalid argument supplied for foreach() in /in/84R4Q on line 5
Output for 4.3.2 - 4.3.10, 4.4.0 - 5.2.4
Warning: explode(): Empty delimiter. in /in/84R4Q on line 3 Warning: Invalid argument supplied for foreach() in /in/84R4Q on line 5
Output for 4.3.11
Warning: explode(): Empty delimiter. in /in/84R4Q on line 3
Output for 4.3.0 - 4.3.1
Warning: explode() [http://www.php.net/function.explode]: Empty delimiter. in /in/84R4Q on line 3 Warning: Invalid argument supplied for foreach() in /in/84R4Q on line 5