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 $i; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/VM7Gk
function name:  (null)
number of ops:  12
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                                                      ->9
   10     6    >   ECHO                                                     !3
    9     7        IS_SMALLER                                       ~9      !3, !2
          8        FREE                                                     ~9
          9    >   POST_INC                                         ~10     !3
         10      > JMPNZ                                                    ~10, ->6
   12    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1393 KiB | 13 Q