3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for($i=0; $i<=6000; $i++) { $n = str_shuffle('0123456789'); $a[] = $n; echo $n.'</br>'; if(in_array(2,array_count_values($a))) { break 1; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
Branch analysis from position: 3
filename:       /in/11HZf
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $i, !2 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->21
    4     3    >   INIT_FCALL                                               'str_shuffle'
          4        SEND_VAL                                                 '0123456789'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    5     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  !2
    6     9        CONCAT                                           ~8      !2, '%3C%2Fbr%3E'
         10        ECHO                                                     ~8
    7    11        INIT_FCALL                                               'in_array'
         12        SEND_VAL                                                 2
         13        INIT_FCALL                                               'array_count_values'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                         $10     
         18      > JMPZ                                                     $10, ->20
    8    19    > > JMP                                                      ->23
    3    20    >   PRE_INC                                                  !1
         21    >   IS_SMALLER_OR_EQUAL                                      !1, 6000
         22      > JMPNZ                                                    ~12, ->3
   10    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.4 ms | 1399 KiB | 19 Q