3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words1 = array('Чудесных', 'Суровых', 'Занятных', 'Внезапных'); $words2 = array('слов', 'зим', 'глаз', 'дней', 'лет', 'мир', 'взор'); $words3 = array('прикосновений', 'поползновений', 'судьбы явлений', 'сухие листья', 'морщины смерти', 'долины края', 'замены нету', 'сухая юность', 'навек исчезнув'); $words4 = array('обретаю', 'понимаю', 'начертаю', 'закрываю', 'оставляю', 'вынимаю', 'умираю', 'замерзаю', 'выделяю'); $words5 = array('очертания', 'безысходность', 'начертанья', 'смысл жизни', 'вирус смерти', 'радость мира'); $wordGroups = array($words1, $words2, $words3, $words4, $words5); for($counter = 0; $counter <= 1; $counter++) { for($groupIndex = 0; $groupIndex <= 2; $groupIndex++) { $wordGroup = $wordGroups[$groupIndex]; $wordIndex = array_rand($wordGroup); $word = $wordGroups[$groupIndex][$wordIndex]; echo $word . ' '; } echo "\n"; } echo 'Я '; for($groupIndex = 3; $groupIndex <= 4; $groupIndex++) { $wordGroup = $wordGroups[$groupIndex]; $wordIndex = array_rand($wordGroup); $word = $wordGroups[$groupIndex][$wordIndex]; echo $word . ' '; } echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 13
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 36
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 36
Branch analysis from position: 50
Branch analysis from position: 36
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 15
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 13
Branch analysis from position: 33
Branch analysis from position: 13
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 15
Branch analysis from position: 29
Branch analysis from position: 15
filename:       /in/QoXBU
function name:  (null)
number of ops:  52
compiled vars:  !0 = $words1, !1 = $words2, !2 = $words3, !3 = $words4, !4 = $words5, !5 = $wordGroups, !6 = $counter, !7 = $groupIndex, !8 = $wordGroup, !9 = $wordIndex, !10 = $word
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>
    8     3        ASSIGN                                                   !3, <array>
   10     4        ASSIGN                                                   !4, <array>
   13     5        INIT_ARRAY                                       ~16     !0
          6        ADD_ARRAY_ELEMENT                                ~16     !1
          7        ADD_ARRAY_ELEMENT                                ~16     !2
          8        ADD_ARRAY_ELEMENT                                ~16     !3
          9        ADD_ARRAY_ELEMENT                                ~16     !4
         10        ASSIGN                                                   !5, ~16
   15    11        ASSIGN                                                   !6, 0
         12      > JMP                                                      ->31
   16    13    >   ASSIGN                                                   !7, 0
         14      > JMP                                                      ->27
   17    15    >   FETCH_DIM_R                                      ~20     !5, !7
         16        ASSIGN                                                   !8, ~20
   18    17        INIT_FCALL                                               'array_rand'
         18        SEND_VAR                                                 !8
         19        DO_ICALL                                         $22     
         20        ASSIGN                                                   !9, $22
   19    21        FETCH_DIM_R                                      ~24     !5, !7
         22        FETCH_DIM_R                                      ~25     ~24, !9
         23        ASSIGN                                                   !10, ~25
   20    24        CONCAT                                           ~27     !10, '+'
         25        ECHO                                                     ~27
   16    26        PRE_INC                                                  !7
         27    >   IS_SMALLER_OR_EQUAL                                      !7, 2
         28      > JMPNZ                                                    ~29, ->15
   23    29    >   ECHO                                                     '%0A'
   15    30        PRE_INC                                                  !6
         31    >   IS_SMALLER_OR_EQUAL                                      !6, 1
         32      > JMPNZ                                                    ~31, ->13
   26    33    >   ECHO                                                     '%D0%AF+'
   27    34        ASSIGN                                                   !7, 3
         35      > JMP                                                      ->48
   28    36    >   FETCH_DIM_R                                      ~33     !5, !7
         37        ASSIGN                                                   !8, ~33
   29    38        INIT_FCALL                                               'array_rand'
         39        SEND_VAR                                                 !8
         40        DO_ICALL                                         $35     
         41        ASSIGN                                                   !9, $35
   30    42        FETCH_DIM_R                                      ~37     !5, !7
         43        FETCH_DIM_R                                      ~38     ~37, !9
         44        ASSIGN                                                   !10, ~38
   31    45        CONCAT                                           ~40     !10, '+'
         46        ECHO                                                     ~40
   27    47        PRE_INC                                                  !7
         48    >   IS_SMALLER_OR_EQUAL                                      !7, 4
         49      > JMPNZ                                                    ~42, ->36
   33    50    >   ECHO                                                     '%0A'
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.07 ms | 1002 KiB | 14 Q