3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.25 ms | 1394 KiB | 15 Q