3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fileNow = "00123"; while ($fileNow[0] == 0) { $fileNow = substr($fileNow, 1); var_dump($fileNow); }
Output for 4.3.0 - 7.1.0
string(4) "0123" string(3) "123"