3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=61011 $range = range($min, $max); echo $range[array_rand($range)];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amdsu
function name:  (null)
number of ops:  11
compiled vars:  !0 = $range, !1 = $min, !2 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAR                                                 !1
          2        SEND_VAR                                                 !2
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL                                               'array_rand'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        FETCH_DIM_R                                      ~6      !0, $5
          9        ECHO                                                     ~6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.04 ms | 1394 KiB | 17 Q