3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Y { public static function test() { $a = new Y(); $a = null; } private function __destruct() { var_dump(__METHOD__); } } Y::test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FEV2fT
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                      'Y', 'test'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Class Y:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FEV2fT
function name:  test
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $1      'Y'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    6     3        ASSIGN                                                       !0, null
    7     4      > RETURN                                                       null

End of function test

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FEV2fT
function name:  __destruct
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     'Y%3A%3A__destruct'
          2        DO_ICALL                                                     
   10     3      > RETURN                                                       null

End of function __destruct

End of class Y.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.14 ms | 3313 KiB | 14 Q