3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Lock { public function __construct() { echo "lock" . PHPEOL; } public function __destruct() { echo "unlock" . PHPEOL; } } new Lock(); $nullObject = null; try { $nullObject->undefined(); } catch(Exception $e) { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
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/HsSh9
function name:  (null)
number of ops:  9
compiled vars:  !0 = $nullObject, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $2      'Lock'
          1        DO_FCALL                                      0          
          2        FREE                                                     $2
   18     3        ASSIGN                                                   !0, null
   21     4        INIT_METHOD_CALL                                         !0, 'undefined'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->8
   22     7  E > > CATCH                                       last         'Exception'
   24     8    > > RETURN                                                   1

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

End of function __construct

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

End of function __destruct

End of class Lock.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.93 ms | 1385 KiB | 13 Q