3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = <<< END 2x egg 2 - carrot cabbage 1x potato END; $lines = explode("\n", $str); foreach($lines as $line) { echo $line; }
Output for 4.3.0 - 7.2.0
2x egg2 - carrotcabbage1x potato