3v4l.org

run code in 500+ 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 = 61) 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:  20
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    > > INIT_FCALL                                                   'exit'
         17*       SEND_VAL                                                     0
         18*       DO_ICALL                                                     
         19*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.95 ms | 1444 KiB | 16 Q