3v4l.org

run code in 300+ PHP versions simultaneously
<?php $digits = 3; echo rand(pow(10, $digits-1), pow(10, $digits)-1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RTQac
function name:  (null)
number of ops:  17
compiled vars:  !0 = $digits
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
    4     1        INIT_FCALL                                               'rand'
          2        INIT_FCALL                                               'pow'
          3        SEND_VAL                                                 10
          4        SUB                                              ~2      !0, 1
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        INIT_FCALL                                               'pow'
          9        SEND_VAL                                                 10
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SUB                                              ~5      $4, 1
         13        SEND_VAL                                                 ~5
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.7 ms | 1394 KiB | 17 Q