3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function deleteMe($obj) { unset($obj); } } class Bar extends Foo { public function __construct() { $foo = new Foo(); Foo:deleteMe($foo); } } $bar = new Bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RZ6em
function name:  (null)
number of ops:  4
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Bar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class Foo:
Function deleteme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RZ6em
function name:  deleteMe
number of ops:  3
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        UNSET_CV                                                 !0
    9     2      > RETURN                                                   null

End of function deleteme

End of class Foo.

Class Bar:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RZ6em
function name:  __construct
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_FCALL_BY_NAME                                       'deleteMe'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
   19     6      > RETURN                                                   null

End of function __construct

Function deleteme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RZ6em
function name:  deleteMe
number of ops:  3
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        UNSET_CV                                                 !0
    9     2      > RETURN                                                   null

End of function deleteme

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.21 ms | 1398 KiB | 13 Q