3v4l.org

run code in 300+ PHP versions simultaneously
<?php class streamWrapper { public function stream_lock($operation ) { var_dump($operation); } } stream_wrapper_register('test', 'streamWrapper'); $fp = fopen('test://waa', 'w+'); flock($fp, LOCK_EX);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gqeaj
function name:  (null)
number of ops:  14
compiled vars:  !0 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'stream_wrapper_register'
          1        SEND_VAL                                                 'test'
          2        SEND_VAL                                                 'streamWrapper'
          3        DO_ICALL                                                 
   13     4        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 'test%3A%2F%2Fwaa'
          6        SEND_VAL                                                 'w%2B'
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
   14     9        INIT_FCALL                                               'flock'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 2
         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/gqeaj
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

End of class streamWrapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1395 KiB | 21 Q