3v4l.org

run code in 300+ PHP versions simultaneously
<?php function output_html($ext) { return strlen($ext); } function open ($save_path, $session_name) { return true; } function close() { return true; } function read ($id) { } function write ($id, $sess_data) { ob_start("output_html"); echo "laruence"; ob_end_flush(); return true; } function destroy ($id) { } function gc ($maxlifetime) { return true; } session_set_save_handler ("open", "close", "read", "write", "destroy", "gc"); session_start();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n1nXC
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   INIT_FCALL                                               'session_set_save_handler'
          1        SEND_VAL                                                 'open'
          2        SEND_VAL                                                 'close'
          3        SEND_VAL                                                 'read'
          4        SEND_VAL                                                 'write'
          5        SEND_VAL                                                 'destroy'
          6        SEND_VAL                                                 'gc'
          7        DO_ICALL                                                 
   32     8        INIT_FCALL                                               'session_start'
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

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

End of function output_html

Function open:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n1nXC
function name:  open
number of ops:  4
compiled vars:  !0 = $save_path, !1 = $session_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2      > RETURN                                                   <true>
    8     3*     > 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/n1nXC
function name:  close
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   <true>
   12     1*     > 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/n1nXC
function name:  read
number of ops:  2
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1      > 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/n1nXC
function name:  write
number of ops:  10
compiled vars:  !0 = $id, !1 = $sess_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   18     2        INIT_FCALL                                               'ob_start'
          3        SEND_VAL                                                 'output_html'
          4        DO_ICALL                                                 
   19     5        ECHO                                                     'laruence'
   20     6        INIT_FCALL                                               'ob_end_flush'
          7        DO_ICALL                                                 
   21     8      > RETURN                                                   <true>
   22     9*     > 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/n1nXC
function name:  destroy
number of ops:  2
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
   25     1      > 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/n1nXC
function name:  gc
number of ops:  3
compiled vars:  !0 = $maxlifetime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   RECV                                             !0      
   28     1      > RETURN                                                   <true>
   29     2*     > RETURN                                                   null

End of function gc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.11 ms | 1400 KiB | 21 Q