3v4l.org

run code in 500+ PHP versions simultaneously
<?php function incrementVar($x) { try{ return ++$x; }catch(Exception $e){} finally{ return $x+2; } } echo incrementVar(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kkpGu
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'incrementvar'
          1        SEND_VAL                                                     1
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
          4      > RETURN                                                       1

Function incrementvar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) 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 = 62) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
2 jumps found. (Code = 162) Position 1 = 8, Position 2 = 7
Branch analysis from position: 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kkpGu
function name:  incrementVar
number of ops:  13
compiled vars:  !0 = $x, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    6     1        PRE_INC                                              ~3      !0
          2      > FAST_CALL                                                    ->8
          3    > > RETURN                                                       ~3
          4*       JMP                                                          ->6
    7     5  E > > CATCH                                           last         'Exception'
    8     6    > > FAST_CALL                                                    ->8
          7    > > JMP                                                          ->12
    9     8    >   ADD                                                  ~4      !0, 2
          9        DISCARD_EXCEPTION                                            
         10      > RETURN                                                       ~4
         11*       FAST_RET                                                     
   11    12    > > RETURN                                                       null

End of function incrementvar

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.17 ms | 482 KiB | 9 Q