3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function open() {} function close() {} function read() {} function write() {} function destroy() {} function gc() {} } $session_handler = new Foo; session_set_save_handler( array($session_handler, 'open'), array($session_handler, 'close'), array($session_handler, 'read'), array($session_handler, 'write'), array($session_handler, 'destroy'), array($session_handler, 'gc'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MVNjd
function name:  (null)
number of ops:  24
compiled vars:  !0 = $session_handler
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_FCALL                                               'session_set_save_handler'
          4        INIT_ARRAY                                       ~4      !0
          5        ADD_ARRAY_ELEMENT                                ~4      'open'
          6        SEND_VAL                                                 ~4
          7        INIT_ARRAY                                       ~5      !0
          8        ADD_ARRAY_ELEMENT                                ~5      'close'
          9        SEND_VAL                                                 ~5
         10        INIT_ARRAY                                       ~6      !0
         11        ADD_ARRAY_ELEMENT                                ~6      'read'
         12        SEND_VAL                                                 ~6
         13        INIT_ARRAY                                       ~7      !0
         14        ADD_ARRAY_ELEMENT                                ~7      'write'
         15        SEND_VAL                                                 ~7
         16        INIT_ARRAY                                       ~8      !0
         17        ADD_ARRAY_ELEMENT                                ~8      'destroy'
         18        SEND_VAL                                                 ~8
         19        INIT_ARRAY                                       ~9      !0
         20        ADD_ARRAY_ELEMENT                                ~9      'gc'
         21        SEND_VAL                                                 ~9
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

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

End of function open

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

End of function close

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

End of function read

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

End of function write

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

End of function destroy

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

End of function gc

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1400 KiB | 15 Q