3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name='abcdefOL'; $name = str_pad($name, 6, '0', STR_PAD_LEFT); $file = substr($name, 0, strlen($name) - 3) . '/' . substr($name, -3, 3) . '/' . $name; var_dump($file);
Output for 5.5.9
string(18) "abcde/fOL/abcdefOL"