3v4l.org

run code in 300+ PHP versions simultaneously
<?php class streamWrapper { public function stream_lock($operation ) { var_dump($operation); } public function stream_open($path, $mode, $options, $opened_path) { var_dump($path); return fopen('/tmp/waa', $mode); } } stream_wrapper_register('test', 'streamWrapper'); $fp = fopen('test://waa', 'w+'); flock($fp, LOCK_EX | LOCK_SH);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GUWJM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $fp
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        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 'test%3A%2F%2Fwaa'
          6        SEND_VAL                                                 'w%2B'
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
   20     9        INIT_FCALL                                               'flock'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class streamWrapper:
Function stream_lock:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GUWJM
function name:  stream_lock
number of ops:  5
compiled vars:  !0 = $operation
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    8     4      > RETURN                                                   null

End of function stream_lock

Function stream_open:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GUWJM
function name:  stream_open
number of ops:  13
compiled vars:  !0 = $path, !1 = $mode, !2 = $options, !3 = $opened_path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
   12     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   13     7        INIT_FCALL                                               'fopen'
          8        SEND_VAL                                                 '%2Ftmp%2Fwaa'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11      > RETURN                                                   $5
   14    12*     > RETURN                                                   null

End of function stream_open

End of class streamWrapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.23 ms | 1388 KiB | 21 Q