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++; } echo "$a"; echo "$num"; }
based on qEjO4
Output for 4.3.0 - 7.1.0
13 26 310 415 521 628