3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cywm528 { function __destruct() { echo 'cywm528.'; } } new cywm528; $obj1 = new cywm528; $obj2 = $obj1; unset($obj1); echo 'hi, '; $obj2 = null; echo ' ok!';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iXNdX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $obj1, !1 = $obj2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'cywm528'
          1        DO_FCALL                                      0          
          2        FREE                                                     $2
   10     3        NEW                                              $4      'cywm528'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $4
   11     6        ASSIGN                                                   !1, !0
   12     7        UNSET_CV                                                 !0
   13     8        ECHO                                                     'hi%2C+'
   14     9        ASSIGN                                                   !1, null
   15    10        ECHO                                                     '+ok%21'
         11      > RETURN                                                   1

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

End of function __destruct

End of class cywm528.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.93 ms | 1393 KiB | 13 Q