3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Kurier { public function __construct() { echo "Konstruktor"; } public function __destruct() { echo "Destruktor"; } } echo "Poczatek"; $kurier = new Kurier(); unset($kurier); echo "Koniec";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u9r1A
function name:  (null)
number of ops:  7
compiled vars:  !0 = $kurier
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'Poczatek'
   17     1        NEW                                              $1      'Kurier'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   19     4        UNSET_CV                                                 !0
   21     5        ECHO                                                     'Koniec'
          6      > RETURN                                                   1

Class Kurier:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u9r1A
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Konstruktor'
    8     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/u9r1A
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'Destruktor'
   13     1      > RETURN                                                   null

End of function __destruct

End of class Kurier.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.83 ms | 1393 KiB | 13 Q