3v4l.org

run code in 300+ PHP versions simultaneously
<?php $session_handler = '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/KuFdp
function name:  (null)
number of ops:  22
compiled vars:  !0 = $session_handler
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo'
    3     1        INIT_FCALL                                               'session_set_save_handler'
          2        INIT_ARRAY                                       ~2      !0
          3        ADD_ARRAY_ELEMENT                                ~2      'open'
          4        SEND_VAL                                                 ~2
          5        INIT_ARRAY                                       ~3      !0
          6        ADD_ARRAY_ELEMENT                                ~3      'close'
          7        SEND_VAL                                                 ~3
          8        INIT_ARRAY                                       ~4      !0
          9        ADD_ARRAY_ELEMENT                                ~4      'read'
         10        SEND_VAL                                                 ~4
         11        INIT_ARRAY                                       ~5      !0
         12        ADD_ARRAY_ELEMENT                                ~5      'write'
         13        SEND_VAL                                                 ~5
         14        INIT_ARRAY                                       ~6      !0
         15        ADD_ARRAY_ELEMENT                                ~6      'destroy'
         16        SEND_VAL                                                 ~6
         17        INIT_ARRAY                                       ~7      !0
         18        ADD_ARRAY_ELEMENT                                ~7      'gc'
         19        SEND_VAL                                                 ~7
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.4 ms | 1395 KiB | 15 Q