3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1=1; $var2=0; $var3=2; $var4=-1; for ($i=1; $i<=4; $i++) { $current=${"var$i"}; if ($current <= 0) echo "var$i "; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
Branch analysis from position: 6
Branch analysis from position: 16
filename:       /in/bDngn
function name:  (null)
number of ops:  20
compiled vars:  !0 = $var1, !1 = $var2, !2 = $var3, !3 = $var4, !4 = $i, !5 = $current
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 0
    4     2        ASSIGN                                                   !2, 2
    5     3        ASSIGN                                                   !3, -1
    7     4        ASSIGN                                                   !4, 1
          5      > JMP                                                      ->17
    8     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~11     'var', !4
          8        FETCH_R                      local               ~12     ~11
          9        ASSIGN                                                   !5, ~12
    9    10        IS_SMALLER_OR_EQUAL                                      !5, 0
         11      > JMPZ                                                     ~14, ->16
         12    >   ROPE_INIT                                     3  ~16     'var'
         13        ROPE_ADD                                      1  ~16     ~16, !4
         14        ROPE_END                                      2  ~15     ~16, '+'
         15        ECHO                                                     ~15
    7    16    >   PRE_INC                                                  !4
         17    >   IS_SMALLER_OR_EQUAL                                      !4, 4
         18      > JMPNZ                                                    ~19, ->6
   10    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.12 ms | 1394 KiB | 13 Q