3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "this is a long test"; $arr = []; $len = strlen($text); for($i = 0; $i < $len; $i++) { $arr[] = $text[$i]; } var_dump($arr);
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/ljlTK
function name:  (null)
number of ops:  16
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                                      ~10     !0, !3
          7        ASSIGN_DIM                                               !1
          8        OP_DATA                                                  ~10
    9     9        PRE_INC                                                  !3
         10    >   IS_SMALLER                                               !3, !2
         11      > JMPNZ                                                    ~12, ->6
   13    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.86 ms | 1395 KiB | 15 Q