3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = 'azertyuiop.jpg'; echo $yearToLetter = substr($file, 3, 1); echo '--'; echo $realFile = substr($file, 4, 0);

preferences:
33.8 ms | 402 KiB | 5 Q