3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d=6; $num=1; for($a=1;$a<=$d;$a++) { for($b=0;$b<=$a;$b++) { echo "$num "; $num++; } echo "$a"; }
based on m5ja9
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1 2 13 4 5 26 7 8 9 310 11 12 13 14 415 16 17 18 19 20 521 22 23 24 25 26 27 6