3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach( range( 1, 5) as $x) { print $x . " | "; foreach( range( 1, 6) as $y) { print ($x + $y); print " "; } print "\n"; }
Output for 4.3.0 - 7.1.0
1 | 2 3 4 5 6 7 2 | 3 4 5 6 7 8 3 | 4 5 6 7 8 9 4 | 5 6 7 8 9 10 5 | 6 7 8 9 10 11