3v4l.org

run code in 500+ PHP versions simultaneously
<?php $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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
Branch analysis from position: 6
filename:       /in/N2nCO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $seed, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 1
    4     1        INIT_FCALL                                                   'srand'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
    5     4        ASSIGN                                                       !1, 0
          5      > JMP                                                          ->13
    7     6    >   INIT_FCALL                                                   'rand'
          7        SEND_VAL                                                     0
          8        SEND_VAL                                                     100
          9        DO_ICALL                                             $5      
         10        CONCAT                                               ~6      $5, '%0A'
         11        ECHO                                                         ~6
    5    12        PRE_INC                                                      !1
         13    >   IS_SMALLER                                                   !1, 10
         14      > JMPNZ                                                        ~8, ->6
    9    15    > > INIT_FCALL                                                   'exit'
         16*       SEND_VAL                                                     0
         17*       DO_ICALL                                                     
         18*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.69 ms | 2391 KiB | 16 Q