3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $width = 9; foreach (range(1, $width) as $i) { printf("%{$width}s\n", join(range(1, $i))); }
Output for 4.3.0 - 7.1.0
1 12 123 1234 12345 123456 1234567 12345678 123456789