3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { function __destruct() { print '__destruct'; } } register_shutdown_function(function () { new A; register_shutdown_function(function () { new A; }); throw new Exception; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/duM4S
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
   17     2        SEND_VAL                                                     ~0
    9     3        DO_ICALL                                                     
   17     4      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/duM4S
function name:  {closure:/in/duM4S:9}
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $0      'A'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
   12     3        INIT_FCALL                                                   'register_shutdown_function'
          4        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   14     5        SEND_VAL                                                     ~2
   12     6        DO_ICALL                                                     
   16     7        NEW                                                  $4      'Exception'
          8        DO_FCALL                                          0          
          9      > THROW                                             0          $4
   17    10*     > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/duM4S
function name:  {closure:{closure:/in/duM4S:9}:12}
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $0      'A'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
   14     3      > RETURN                                                       null

End of Dynamic Function 0

End of Dynamic Function 0

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

End of function __destruct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
215.19 ms | 2032 KiB | 14 Q