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) { $arr[] = $text[$i]; } var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/qWlmY
function name:  (null)
number of ops:  17
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
    8     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->11
    9     6    >   FETCH_DIM_R                                      ~10     !0, !3
          7        ASSIGN_DIM                                               !1
          8        OP_DATA                                                  ~10
    8     9        IS_SMALLER                                       ~11     !3, !2
         10        FREE                                                     ~11
         11    >   POST_INC                                         ~12     !3
         12      > JMPNZ                                                    ~12, ->6
   12    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.53 ms | 1395 KiB | 15 Q