3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 1394 KiB | 15 Q