3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StreamWrapper { public function stream_open($path, $mode, $options, &$opened_path) { return true; } public function stream_stat() { return stat(__FILE__); } public function stream_read($count) { return ''; } public function stream_eof() { return true; } } stream_wrapper_register('test', StreamWrapper::class); require_once('test://foo');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QjgOW
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'stream_wrapper_register'
          1        SEND_VAL                                                 'test'
          2        SEND_VAL                                                 'StreamWrapper'
          3        DO_ICALL                                                 
   19     4        INCLUDE_OR_EVAL                                          'test%3A%2F%2Ffoo', REQUIRE_ONCE
          5      > RETURN                                                   1

Class StreamWrapper:
Function stream_open:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QjgOW
function name:  stream_open
number of ops:  6
compiled vars:  !0 = $path, !1 = $mode, !2 = $options, !3 = $opened_path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    7     4      > RETURN                                                   <true>
    8     5*     > RETURN                                                   null

End of function stream_open

Function stream_stat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QjgOW
function name:  stream_stat
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'stat'
          1        SEND_VAL                                                 '%2Fin%2FQjgOW'
          2        DO_ICALL                                         $0      
          3      > RETURN                                                   $0
          4*     > RETURN                                                   null

End of function stream_stat

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

End of function stream_read

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

End of function stream_eof

End of class StreamWrapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.69 ms | 1396 KiB | 17 Q