3v4l.org

run code in 500+ PHP versions simultaneously
<?php $alphabet = range("A", "Z"); $i =0; Echo $alphabet[$i]; $i =($i+25)%26; Echo $alphabet[$i];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U49OY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $alphabet, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     'A'
          2        SEND_VAL                                                     'Z'
          3        DO_ICALL                                             $2      
          4        ASSIGN                                                       !0, $2
    4     5        ASSIGN                                                       !1, 0
    6     6        FETCH_DIM_R                                          ~5      !0, !1
          7        ECHO                                                         ~5
    7     8        ADD                                                  ~6      !1, 25
          9        MOD                                                  ~7      ~6, 26
         10        ASSIGN                                                       !1, ~7
    8    11        FETCH_DIM_R                                          ~9      !0, !1
         12        ECHO                                                         ~9
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.89 ms | 2126 KiB | 14 Q