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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jNI5W
function name:  (null)
number of ops:  17
compiled vars:  !0 = $file, !1 = $yearToLetter, !2 = $realFile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'azertyuiop.jpg'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                           ~5      !1, $4
          7        ECHO                                                     ~5
    6     8        ECHO                                                     '--'
    7     9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 4
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $6      
         14        ASSIGN                                           ~7      !2, $6
         15        ECHO                                                     ~7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.16 ms | 1394 KiB | 15 Q