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
Output for 7.0.0 - 7.2.0
int(11) Notice: Undefined variable: path in /in/a0lAT on line 7 Notice: Undefined variable: name in /in/a0lAT on line 7
Output for 5.3.18 - 5.6.28
int(11) Notice: Undefined variable: name in /in/a0lAT on line 7 Notice: Undefined variable: path in /in/a0lAT on line 7