3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.77 ms | 2568 KiB | 14 Q