3v4l.org

run code in 500+ PHP versions simultaneously
<?php register_shutdown_function(function () { echo 'BYE BY SHUTDOWN', PHP_EOL; register_shutdown_function(function () { echo 'BYE BY LAST SHUTDOWN', PHP_EOL; }); }); $a = new class { function __destruct() { echo 'PHP SUPER SHUTDOWN', PHP_EOL; } };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HDSbI
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
    8     2        SEND_VAL                                                     ~1
    2     3        DO_ICALL                                                     
   10     4        DECLARE_ANON_CLASS                                   <unknown> 
          5        NEW                                                  $4      $3
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !0, $4
   14     8      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HDSbI
function name:  {closure:/in/HDSbI:2}
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         'BYE+BY+SHUTDOWN'
          1        ECHO                                                         '%0A'
    5     2        INIT_FCALL                                                   'register_shutdown_function'
          3        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    7     4        SEND_VAL                                                     ~0
    5     5        DO_ICALL                                                     
    8     6      > 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/HDSbI
function name:  {closure:{closure:/in/HDSbI:2}:5}
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                         'BYE+BY+LAST+SHUTDOWN'
          1        ECHO                                                         '%0A'
    7     2      > RETURN                                                       null

End of Dynamic Function 0

End of Dynamic Function 0

Class class@anonymous:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HDSbI
function name:  __destruct
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                         'PHP+SUPER+SHUTDOWN'
          1        ECHO                                                         '%0A'
   13     2      > RETURN                                                       null

End of function __destruct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.63 ms | 478 KiB | 8 Q