3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; for ($i = 0; $i < 5; ++$i) var_dump(++$a); for ($i = 0; $i < 5; ++$i) var_dump(str_pad($a, 3, '0', STR_PAD_LEFT));