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++) { rand( $testseed ); $r = rand(); printf( "rand() == 0x%08x == %d\n", $testseed, $r ); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
Branch analysis from position: 5
filename:       /in/H7qaR
function name:  (null)
number of ops:  20
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                                                      ->17
    7     5    >   INIT_FCALL                                               'rand'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'rand'
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
    9    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 'rand%28%29+%3D%3D+0x%2508x+%3D%3D+%25d%0A'
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
    5    16        PRE_INC                                                  !2
         17    >   IS_SMALLER                                               !2, !1
         18      > JMPNZ                                                    ~13, ->5
   10    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.43 ms | 1386 KiB | 17 Q