3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { echo 'a'; } function bar() { echo 'bar'; } try { return foo(); } catch (\Throwable $t) { echo $t->getMessage(); } finally { return bar(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
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 = 11, Position 2 = 10
Branch analysis from position: 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7PhSQ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0  $2      
          2      > FAST_CALL                                                ->11
          3    > > RETURN                                                   $2
          4*       JMP                                                      ->9
   15     5  E > > CATCH                                       last         'Throwable'
   16     6    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $3      
          8        ECHO                                                     $3
   17     9      > FAST_CALL                                                ->11
         10    > > JMP                                                      ->16
   18    11    >   INIT_FCALL                                               'bar'
         12        DO_FCALL                                      0  $4      
         13        DISCARD_EXCEPTION                                        
         14      > RETURN                                                   $4
         15*       FAST_RET                                                 
   19    16    > > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7PhSQ
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'a'
    6     1      > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7PhSQ
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'bar'
   11     1      > RETURN                                                   null

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.32 ms | 1399 KiB | 15 Q