3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct(){ echo "constructed\n"; } public function __destruct(){ echo "destroyed\n"; } } try { echo "try\n"; $t = new test(); exit(1); } finally { echo "finally\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/V7GmQ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'try%0A'
   11     1        NEW                                              $2      'test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   12     4      > EXIT                                                     1
   13     5*       FAST_CALL                                                ->7
          6*       JMP                                                      ->9
   14     7*       ECHO                                                     'finally%0A'
          8*       FAST_RET                                                 
   15     9*     > RETURN                                                   1

Class test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V7GmQ
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'constructed%0A'
          1      > 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/V7GmQ
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'destroyed%0A'
          1      > RETURN                                                   null

End of function __destruct

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.73 ms | 994 KiB | 13 Q