3v4l.org

run code in 300+ PHP versions simultaneously
<?php // MT_RAND_MT19937 mt_srand(1, 0); var_dump(mt_rand()); // MT_RAND_PHP mt_srand(1, 1); var_dump(mt_rand()); // Unknown mt_srand(1, 2); var_dump(mt_rand()); // Equivalent to 0 when cast as unsigned 8-bit integer mt_srand(1, 256); var_dump(mt_rand());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fOZbQ
function name:  (null)
number of ops:  37
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'mt_srand'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'mt_rand'
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'mt_srand'
         10        SEND_VAL                                                 1
         11        SEND_VAL                                                 1
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'mt_rand'
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'mt_srand'
         19        SEND_VAL                                                 1
         20        SEND_VAL                                                 2
         21        DO_ICALL                                                 
   11    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'mt_rand'
         24        DO_ICALL                                         $7      
         25        SEND_VAR                                                 $7
         26        DO_ICALL                                                 
   13    27        INIT_FCALL                                               'mt_srand'
         28        SEND_VAL                                                 1
         29        SEND_VAL                                                 256
         30        DO_ICALL                                                 
   14    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'mt_rand'
         33        DO_ICALL                                         $10     
         34        SEND_VAR                                                 $10
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.19 ms | 1001 KiB | 16 Q