3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = 10; $d = '0'.$t; echo $d."\r\n"; echo substr($d,-2);
based on ERRbK
Output for 4.3.0 - 7.1.0
010 10