3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("3","4","5"); $array_of_keys = array(); for ($i=0; $i < 10; $i++) { $array_of_keys[] = array_rand($array, 3); } print_r($array_of_keys);
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/b9ZUR
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $array_of_keys, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->11
    8     4    >   INIT_FCALL                                               'array_rand'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $7      
          8        ASSIGN_DIM                                               !1
          9        OP_DATA                                                  $7
    7    10        PRE_INC                                                  !2
         11    >   IS_SMALLER                                               !2, 10
         12      > JMPNZ                                                    ~9, ->4
   11    13    >   INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.69 ms | 1398 KiB | 18 Q