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() == %d\n", $testseed, $r, $r); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
Branch analysis from position: 5
filename:       /in/uNOIG
function name:  (null)
number of ops:  21
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                                                      ->18
    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+%25d%0A'
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !3
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    5    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, !1
         19      > JMPNZ                                                    ~13, ->5
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.55 ms | 1386 KiB | 19 Q