3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 2; $b = 4; $c = 0; for ( ; ++$a, $a < $b ; ) { $c = $b * $a++; } var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/MP5Qp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        ASSIGN                                                   !1, 4
    4     2        ASSIGN                                                   !2, 0
    6     3      > JMP                                                      ->7
    8     4    >   POST_INC                                         ~6      !0
          5        MUL                                              ~7      !1, ~6
          6        ASSIGN                                                   !2, ~7
    6     7    >   PRE_INC                                                  !0
          8        IS_SMALLER                                               !0, !1
          9      > JMPNZ                                                    ~10, ->4
   11    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.73 ms | 1394 KiB | 15 Q