3v4l.org

run code in 300+ PHP versions simultaneously
<?php $answers=[ 1=>'да', 2=>'нет', 3=>'не знаю', 4=>'никогда', 5=>'это зависит от тебя!!!', 6=>'спроси еще раз']; $question='Выучу ли я PHP без регистрации и смс'; foreach ($answers as $key=>$anwer){ $random=mt_random(0, cont(answers)-1); echo $random[$key]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/pmfau
function name:  (null)
number of ops:  20
compiled vars:  !0 = $answers, !1 = $question, !2 = $anwer, !3 = $key, !4 = $random
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, '%D0%92%D1%8B%D1%83%D1%87%D1%83+%D0%BB%D0%B8+%D1%8F+PHP+%D0%B1%D0%B5%D0%B7+%D1%80%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%86%D0%B8%D0%B8+%D0%B8+%D1%81%D0%BC%D1%81'
   11     2      > FE_RESET_R                                       $7      !0, ->18
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->18
          4    >   ASSIGN                                                   !3, ~8
   12     5        INIT_FCALL_BY_NAME                                       'mt_random'
          6        SEND_VAL_EX                                              0
          7        INIT_FCALL_BY_NAME                                       'cont'
          8        FETCH_CONSTANT                                   ~10     'answers'
          9        SEND_VAL_EX                                              ~10
         10        DO_FCALL                                      0  $11     
         11        SUB                                              ~12     $11, 1
         12        SEND_VAL_EX                                              ~12
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !4, $13
   13    15        FETCH_DIM_R                                      ~15     !4, !3
         16        ECHO                                                     ~15
   11    17      > JMP                                                      ->3
         18    >   FE_FREE                                                  $7
   14    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.1 ms | 1394 KiB | 13 Q