3v4l.org

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