3v4l.org

run code in 300+ PHP versions simultaneously
<?php For($i=0; $i<100;$i++){ @$arr[substr(uniqid('', true),-4)] +=1; Sleep(0.5); } Var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
filename:       /in/UQ28l
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->18
    3     2    >   BEGIN_SILENCE                                    ~3      
          3        INIT_FCALL                                               'substr'
          4        INIT_FCALL                                               'uniqid'
          5        SEND_VAL                                                 ''
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAL                                                 -4
         10        DO_ICALL                                         $5      
         11        ASSIGN_DIM_OP                +=               1          !1, $5
         12        OP_DATA                                                  1
         13        END_SILENCE                                              ~3
    4    14        INIT_FCALL                                               'sleep'
         15        SEND_VAL                                                 0.5
         16        DO_ICALL                                                 
    2    17        PRE_INC                                                  !0
         18    >   IS_SMALLER                                               !0, 100
         19      > JMPNZ                                                    ~9, ->2
    7    20    >   INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.33 ms | 1013 KiB | 17 Q