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 = 17
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/1lgTq
function name:  (null)
number of ops:  19
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, ->17
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->17
          4    >   ASSIGN                                                   !3, ~8
   12     5        INIT_FCALL_BY_NAME                                       'mt_random'
          6        SEND_VAL_EX                                              0
          7        INIT_FCALL_BY_NAME                                       'cont'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $10     
         10        SUB                                              ~11     $10, 1
         11        SEND_VAL_EX                                              ~11
         12        DO_FCALL                                      0  $12     
         13        ASSIGN                                                   !4, $12
   13    14        FETCH_DIM_R                                      ~14     !4, !3
         15        ECHO                                                     ~14
   11    16      > JMP                                                      ->3
         17    >   FE_FREE                                                  $7
   14    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.5 ms | 1393 KiB | 13 Q