3v4l.org

run code in 300+ PHP versions simultaneously
<?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); }
Output for git.master, git.master_jit, rfc.property-hooks
int(11) Warning: Undefined variable $path in /in/a0lAT on line 7 Warning: Undefined variable $name in /in/a0lAT on line 7

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
52.72 ms | 401 KiB | 8 Q