3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.22 ms | 1386 KiB | 15 Q