3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $len = strlen($chars); for ($i = 0; $i < $len; $i++) { echo substr($chars,$i,1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
Branch analysis from position: 5
filename:       /in/a37jn
function name:  (null)
number of ops:  15
compiled vars:  !0 = $chars, !1 = $len, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    4     1        STRLEN                                           ~4      !0
          2        ASSIGN                                                   !1, ~4
    6     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->12
    7     5    >   INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $7      
         10        ECHO                                                     $7
    6    11        PRE_INC                                                  !2
         12    >   IS_SMALLER                                               !2, !1
         13      > JMPNZ                                                    ~9, ->5
    8    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.86 ms | 1394 KiB | 15 Q