3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($x=30;$x-=1;$x>0) if ($x%2==1) echo $x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
Branch analysis from position: 6
filename:       /in/Ns0vi
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 30
          1      > JMP                                                      ->8
    3     2    >   MOD                                              ~2      !0, 2
          3        IS_EQUAL                                                 ~2, 1
          4      > JMPZ                                                     ~3, ->6
    4     5    >   ECHO                                                     !0
    2     6    >   IS_SMALLER                                       ~4      0, !0
          7        FREE                                                     ~4
          8    >   ASSIGN_OP                                     2  ~5      !0, 1
          9      > JMPNZ                                                    ~5, ->2
    4    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.69 ms | 1393 KiB | 13 Q