3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Testing shutdown sequence function shutdown() { echo "register_shutdown_function\n"; } register_shutdown_function('shutdown'); class MyClass { function __destruct() { echo "Object destructor\n"; } } function obcallback($buffer) { $buffer .= "Output buffer callback\n"; return $buffer; } ob_start('obcallback'); $myObject = new MyClass; function dummy() { } function sessionclose() { echo "Session close\n"; } function sessionwrite() { echo "Session write\n"; } session_set_save_handler('dummy','sessionclose','dummy','sessionwrite','dummy','dummy'); session_start(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pfICE
function name:  (null)
number of ops:  20
compiled vars:  !0 = $myObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'shutdown'
          2        DO_ICALL                                                 
   32     3        INIT_FCALL                                               'ob_start'
          4        SEND_VAL                                                 'obcallback'
          5        DO_ICALL                                                 
   34     6        NEW                                              $3      'MyClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $3
   49     9        INIT_FCALL                                               'session_set_save_handler'
         10        SEND_VAL                                                 'dummy'
         11        SEND_VAL                                                 'sessionclose'
         12        SEND_VAL                                                 'dummy'
         13        SEND_VAL                                                 'sessionwrite'
         14        SEND_VAL                                                 'dummy'
         15        SEND_VAL                                                 'dummy'
         16        DO_ICALL                                                 
   51    17        INIT_FCALL                                               'session_start'
         18        DO_ICALL                                                 
   53    19      > RETURN                                                   1

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

End of function shutdown

Function obcallback:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pfICE
function name:  obcallback
number of ops:  4
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   27     1        ASSIGN_OP                                     8          !0, 'Output+buffer+callback%0A'
   28     2      > RETURN                                                   !0
   30     3*     > RETURN                                                   null

End of function obcallback

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

End of function dummy

Function sessionclose:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pfICE
function name:  sessionclose
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   ECHO                                                     'Session+close%0A'
   42     1      > RETURN                                                   null

End of function sessionclose

Function sessionwrite:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pfICE
function name:  sessionwrite
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   ECHO                                                     'Session+write%0A'
   47     1      > RETURN                                                   null

End of function sessionwrite

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

End of function __destruct

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.6 ms | 1400 KiB | 21 Q