3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function __construct() { echo "create\n"; } function free() { echo "free\n"; } } try { $a = new a; throw new Exception (''); } catch (Exception $e) { echo "exception\n"; } finally { $a->free(); } echo "done\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
2 jumps found. (Code = 162) Position 1 = 12, Position 2 = 11
Branch analysis from position: 12
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/engg1
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $3      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   18     3        NEW                                              $6      'Exception'
          4        SEND_VAL_EX                                              ''
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $6
          7*       JMP                                                      ->10
   19     8  E > > CATCH                                       last         'Exception'
   20     9    >   ECHO                                                     'exception%0A'
   21    10      > FAST_CALL                                                ->12
         11    > > JMP                                                      ->15
   22    12    >   INIT_METHOD_CALL                                         !0, 'free'
         13        DO_FCALL                                      0          
         14      > FAST_RET                                                 
   24    15    >   ECHO                                                     'done%0A'
         16      > RETURN                                                   1

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

End of function __construct

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

End of function free

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.85 ms | 1395 KiB | 13 Q