3v4l.org

run code in 500+ PHP versions simultaneously
<?php $h = tmpfile(); var_dump(flock($h, LOCK_EX|LOCK_NB)); var_dump(flock($h, LOCK_SH|LOCK_NB)); var_dump(flock($h, LOCK_EX|LOCK_NB));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3gTv1
function name:  (null)
number of ops:  25
compiled vars:  !0 = $h
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'tmpfile'
          1        DO_ICALL                                             $1      
          2        ASSIGN                                                       !0, $1
    4     3        INIT_FCALL                                                   'var_dump'
          4        INIT_FCALL                                                   'flock'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     6
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
    5    10        INIT_FCALL                                                   'var_dump'
         11        INIT_FCALL                                                   'flock'
         12        SEND_VAR                                                     !0
         13        SEND_VAL                                                     5
         14        DO_ICALL                                             $5      
         15        SEND_VAR                                                     $5
         16        DO_ICALL                                                     
    6    17        INIT_FCALL                                                   'var_dump'
         18        INIT_FCALL                                                   'flock'
         19        SEND_VAR                                                     !0
         20        SEND_VAL                                                     6
         21        DO_ICALL                                             $7      
         22        SEND_VAR                                                     $7
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.84 ms | 3313 KiB | 15 Q