3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $latest_filename = "1444301049_10.PNG"; if((int) substr($latest_filename, -6, -4) >= 10) { $file = (int) substr($latest_filename, -6) + 1; var_dump($file); $string = $path . $name . "_" . (string)$file . ".PNG"; // var_dump($string); }
based on CT8oX