3v4l.org

run code in 200+ PHP versions simultaneously
<?php foreach ("string" as $a) echo $a;
Output for 5.6.38 - 7.4.6
Warning: Invalid argument supplied for foreach() in /in/Et3DA on line 3