3v4l.org

run code in 300+ 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 = 79) 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:  17
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    > > EXIT                                                     0
         16*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.73 ms | 1395 KiB | 17 Q