3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $k=0; for($i=1;$i<=4;$i++) { for($j=1;$j<$i;$j++) { echo "*"; } echo $k++; echo "\n"; }
based on EPrre
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0alpha1
0 *1 **2 ***3