3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'This is a test'; $exp = explode(' ', $str); for($i = 0; $i < 1000; $i++){ $new = $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/ZmhT1
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $exp, !2 = $i, !3 = $new
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                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->12
    5     8    >   FETCH_DIM_R                                      ~8      !1, 0
          9        ADD                                              ~9      !2, ~8
         10        ASSIGN                                                   !3, ~9
    4    11        PRE_INC                                                  !2
         12    >   IS_SMALLER                                               !2, 1000
         13      > JMPNZ                                                    ~12, ->8
    6    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.12 ms | 1386 KiB | 15 Q