3v4l.org

run code in 300+ 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                                  '%00%7Bclosure%7D%2Fin%2FHDSbI%3A2%240'
    8     2        SEND_VAL                                                 ~1
          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

Function %00%7Bclosure%7D%2Fin%2FHDSbI%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HDSbI
function name:  {closure}
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                                  '%00%7Bclosure%7D%2Fin%2FHDSbI%3A5%241'
    7     4        SEND_VAL                                                 ~0
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FHDSbI%3A2%240

Function %00%7Bclosure%7D%2Fin%2FHDSbI%3A5%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HDSbI
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2FHDSbI%3A5%241

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.0.0


preferences:
126.61 ms | 1401 KiB | 15 Q