3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Lock { public function __construct() { echo "lock" . PHP_EOL; } public function unlock() { echo "unlock" . PHP_EOL; } } $lock = new Lock(); $nullObject = null; try { $nullObject->undefined(); } catch(Exception $e) { } finally { $lock->unlock(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 162) Position 1 = 10, Position 2 = 9
Branch analysis from position: 10
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
filename:       /in/HpZXu
function name:  (null)
number of ops:  14
compiled vars:  !0 = $lock, !1 = $nullObject, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $3      'Lock'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   18     3        ASSIGN                                                   !1, null
   21     4        INIT_METHOD_CALL                                         !1, 'undefined'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->8
   22     7  E > > CATCH                                       last         'Exception'
   24     8    > > FAST_CALL                                                ->10
          9    > > JMP                                                      ->13
   25    10    >   INIT_METHOD_CALL                                         !0, 'unlock'
         11        DO_FCALL                                      0          
         12      > FAST_RET                                                 
   26    13    > > RETURN                                                   1

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

End of function __construct

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

End of function unlock

End of class Lock.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.43 ms | 1399 KiB | 13 Q