3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i < 20; $i++) { $sterren = array("3","4","5"); $sterrenr = array_rand($sterren, 3); $sterrenf = $sterren[$sterrenr]; echo $sterrenf."\n"; }
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 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/rf1Gc
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $sterren, !2 = $sterrenr, !3 = $sterrenf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->13
    4     2    >   ASSIGN                                                   !1, <array>
    5     3        INIT_FCALL                                               'array_rand'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 3
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    6     8        FETCH_DIM_R                                      ~8      !1, !2
          9        ASSIGN                                                   !3, ~8
    7    10        CONCAT                                           ~10     !3, '%0A'
         11        ECHO                                                     ~10
    3    12        PRE_INC                                                  !0
         13    >   IS_SMALLER                                               !0, 20
         14      > JMPNZ                                                    ~12, ->2
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.17 ms | 1395 KiB | 15 Q