3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo PHP_INT_MAX; $seed = 1; srand( $seed ); for($i=0; $i<10; $i++) { echo rand(0,100) . "\n"; } exit(0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
Branch analysis from position: 7
filename:       /in/X24sH
function name:  (null)
number of ops:  18
compiled vars:  !0 = $seed, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     9223372036854775807
    5     1        ASSIGN                                                   !0, 1
    6     2        INIT_FCALL                                               'srand'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    7     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->14
    9     7    >   INIT_FCALL                                               'rand'
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 100
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      $5, '%0A'
         12        ECHO                                                     ~6
    7    13        PRE_INC                                                  !1
         14    >   IS_SMALLER                                               !1, 10
         15      > JMPNZ                                                    ~8, ->7
   11    16    > > EXIT                                                     0
         17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.45 ms | 1005 KiB | 15 Q