3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dtor { function __destruct() { echo "dtor!\n"; } } test(); function test() { $dtor = new Dtor; $null = null; $null->method(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPSsr
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL_BY_NAME                                       'test'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   1

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

End of function test

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

End of function __destruct

End of class Dtor.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.89 ms | 1385 KiB | 13 Q