3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "IPC_IPCamera_13_7_24_9_57_45.jpg"; $parts = explode("_", $name); for ($i = 0; $i < count($parts), $i++) { $part = $parts[$i]; if (count($part) == 1) { $part = "0" . $part; } $name .= $part . "_"; } echo $name;
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ')', expecting ';' in /in/2rYmq on line 7
Process exited with code 255.

preferences:
180.07 ms | 940 KiB | 54 Q