3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public function __destruct() { echo 'destruct'; } } new x; register_shutdown_function(function(){ echo 'shutdown'; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tkRs6
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $0      'x'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   12     3        INIT_FCALL                                               'register_shutdown_function'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtkRs6%3A12%240'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FtkRs6%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tkRs6
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   ECHO                                                     'shutdown'
          1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtkRs6%3A12%240

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

End of function __destruct

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.85 ms | 1399 KiB | 15 Q