3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.64 ms | 1395 KiB | 17 Q