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[0]]; echo $sterrenf."\n"; }
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 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/RkWFh
function name:  (null)
number of ops:  17
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                                                      ->14
    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      !2, 0
          9        FETCH_DIM_R                                      ~9      !1, ~8
         10        ASSIGN                                                   !3, ~9
    7    11        CONCAT                                           ~11     !3, '%0A'
         12        ECHO                                                     ~11
    3    13        PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 20
         15      > JMPNZ                                                    ~13, ->2
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.29 ms | 1395 KiB | 15 Q