3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fileNow = "00123"; $counter = 0; while ($fileNow[0] == 0) { $fileNow = substr($fileNow, 1); var_dump('loop iteration: '.(++$counter).' value of $fileNow:', $fileNow); }
Output for 4.3.0 - 7.2.0
string(36) "loop iteration: 1 value of $fileNow:" string(4) "0123" string(36) "loop iteration: 2 value of $fileNow:" string(3) "123"