3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.48 ms | 1305 KiB | 17 Q