3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uniques = array(); for($i = 0; $i < $numberOfRandoms; $i++) { $uniques[mt_rand(10000, 99999)] = true; } $uniques = array_keys($uniques);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/BrCe9
function name:  (null)
number of ops:  17
compiled vars:  !0 = $uniques, !1 = $i, !2 = $numberOfRandoms
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->10
    5     3    >   INIT_FCALL                                               'mt_rand'
          4        SEND_VAL                                                 10000
          5        SEND_VAL                                                 99999
          6        DO_ICALL                                         $5      
          7        ASSIGN_DIM                                               !0, $5
          8        OP_DATA                                                  <true>
    4     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, !2
         11      > JMPNZ                                                    ~8, ->3
    8    12    >   INIT_FCALL                                               'array_keys'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !0, $9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.39 ms | 1395 KiB | 17 Q