3v4l.org

run code in 300+ PHP versions simultaneously
<?php $min = 17; $max = $min + 48; // 48 is to fit the results in my console for ($testseed=$min; $testseed<$max; $testseed++) { mt_srand( $testseed ); $r = mt_rand(); printf( "mt_rand() == 0x%08x == %d\n", $testseed ); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
filename:       /in/pGtQp
function name:  (null)
number of ops:  19
compiled vars:  !0 = $min, !1 = $max, !2 = $testseed, !3 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 17
    3     1        ADD                                              ~5      !0, 48
          2        ASSIGN                                                   !1, ~5
    5     3        ASSIGN                                                   !2, !0
          4      > JMP                                                      ->16
    7     5    >   INIT_FCALL                                               'mt_srand'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'mt_rand'
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
    9    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 'mt_rand%28%29+%3D%3D+0x%2508x+%3D%3D+%25d%0A'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    5    15        PRE_INC                                                  !2
         16    >   IS_SMALLER                                               !2, !1
         17      > JMPNZ                                                    ~13, ->5
   10    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.14 ms | 1395 KiB | 19 Q