3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = 0; $i < 1000000; $i++) { $random = array_rand(range(1, 49), 6); if (count(array_unique($random)) !== 6) { echo "BREAK"; } } echo count($random);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
Branch analysis from position: 18
filename:       /in/XTIES
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i, !1 = $random
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->19
    4     2    >   INIT_FCALL                                                   'array_rand'
          3        INIT_FCALL                                                   'range'
          4        SEND_VAL                                                     1
          5        SEND_VAL                                                     49
          6        DO_ICALL                                             $3      
          7        SEND_VAR                                                     $3
          8        SEND_VAL                                                     6
          9        DO_ICALL                                             $4      
         10        ASSIGN                                                       !1, $4
    6    11        INIT_FCALL                                                   'array_unique'
         12        SEND_VAR                                                     !1
         13        DO_ICALL                                             $6      
         14        COUNT                                                ~7      $6
         15        IS_NOT_IDENTICAL                                             ~7, 6
         16      > JMPZ                                                         ~8, ->18
    7    17    >   ECHO                                                         'BREAK'
    3    18    >   PRE_INC                                                      !0
         19    >   IS_SMALLER                                                   !0, 1000000
         20      > JMPNZ                                                        ~10, ->2
   11    21    >   COUNT                                                ~11     !1
         22        ECHO                                                         ~11
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.71 ms | 1312 KiB | 16 Q