3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array ("one", "two"); $arr2 = array ("red", "blue", "white", "green", "pink"); $arr3 = array ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"); for ($i = 0; $i < count($arr3); $i++) { echo $arr1[rand (0, (count($arr1) - 1))].' - '.$arr2[rand (0, (count($arr2) - 1))].' - '.$arr3[$i]."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 5
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 5
Branch analysis from position: 30
Branch analysis from position: 5
filename:       /in/PDL5N
function name:  (null)
number of ops:  31
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $arr3, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->27
    8     5    >   INIT_FCALL                                               'rand'
          6        SEND_VAL                                                 0
          7        COUNT                                            ~8      !0
          8        SUB                                              ~9      ~8, 1
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        FETCH_DIM_R                                      ~11     !0, $10
         12        CONCAT                                           ~12     ~11, '+-+'
         13        INIT_FCALL                                               'rand'
         14        SEND_VAL                                                 0
         15        COUNT                                            ~13     !1
         16        SUB                                              ~14     ~13, 1
         17        SEND_VAL                                                 ~14
         18        DO_ICALL                                         $15     
         19        FETCH_DIM_R                                      ~16     !1, $15
         20        CONCAT                                           ~17     ~12, ~16
         21        CONCAT                                           ~18     ~17, '+-+'
         22        FETCH_DIM_R                                      ~19     !2, !3
         23        CONCAT                                           ~20     ~18, ~19
         24        CONCAT                                           ~21     ~20, '%0A'
         25        ECHO                                                     ~21
    7    26        PRE_INC                                                  !3
         27    >   COUNT                                            ~23     !2
         28        IS_SMALLER                                               !3, ~23
         29      > JMPNZ                                                    ~24, ->5
    9    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.89 ms | 1407 KiB | 15 Q