3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $handle = fopen(__FILE__, 'r'); var_dump(flock($handle, LOCK_EX|LOCK_SH)); // only LOCK_SH is honored - php should throw here var_dump(file_get_contents(__FILE__));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4eurQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $handle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 '%2Fin%2F4eurQ'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'flock'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 3
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'file_get_contents'
         14        SEND_VAL                                                 '%2Fin%2F4eurQ'
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.94 ms | 1004 KiB | 17 Q