3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mutex = new SyncMutex("UniqueName"); if (!$mutex->lock(3000)) { echo "Unable to lock mutex."; exit(); } /* ... */ $mutex->unlock();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d8nom
function name:  (null)
number of ops:  14
compiled vars:  !0 = $mutex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SyncMutex'
          1        SEND_VAL_EX                                              'UniqueName'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_METHOD_CALL                                         !0, 'lock'
          5        SEND_VAL_EX                                              3000
          6        DO_FCALL                                      0  $4      
          7        BOOL_NOT                                         ~5      $4
          8      > JMPZ                                                     ~5, ->11
    6     9    >   ECHO                                                     'Unable+to+lock+mutex.'
    8    10      > EXIT                                                     
   13    11    >   INIT_METHOD_CALL                                         !0, 'unlock'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.01 ms | 1447 KiB | 13 Q