Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php
$list = [1, 2, 3, 4];
foreach($list as $item) {
  echo $item;
  echo "<br>";
}
?>
</body>
</html>
1
2
3
4