3v4l.org

run code in 300+ PHP versions simultaneously
<?php srand ( (double)microtime () * 10000000 ); $var = array ( 'Eins', 'Zwei', 'Drei', 'Vier' ); $rand_var = array_rand ( $var, 3 ); echo $rand_var[2];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/91kBS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $var, !1 = $rand_var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'srand'
          1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $2      
          3        CAST                                          5  ~3      $2
          4        MUL                                              ~4      ~3, 10000000
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
    4     7        ASSIGN                                                   !0, <array>
    6     8        INIT_FCALL                                               'array_rand'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 3
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
    8    13        FETCH_DIM_R                                      ~9      !1, 2
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.2 ms | 1394 KiB | 19 Q