3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.02 ms | 1394 KiB | 19 Q