3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "this is a long test"; $arr = []; $len = strlen($text); for($i = 0; $i++; $i < $len) { echo $text[$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 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/NGkbA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $text, !1 = $arr, !2 = $len, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'this+is+a+long+test'
    5     1        ASSIGN                                                   !1, <array>
    7     2        STRLEN                                           ~6      !0
          3        ASSIGN                                                   !2, ~6
    9     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->10
   10     6    >   FETCH_DIM_R                                      ~9      !0, !3
          7        ECHO                                                     ~9
    9     8        IS_SMALLER                                       ~10     !3, !2
          9        FREE                                                     ~10
         10    >   POST_INC                                         ~11     !3
         11      > JMPNZ                                                    ~11, ->6
   12    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.84 ms | 1393 KiB | 13 Q