3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tries = array("when what", "why?"); $answers = array("Why", "Why?"); $tries = array("why?", "why"); $answers = array("Why", "Why?"); $tries = array("why?"); $answers = array("Why", "Why?"); echo "<pre>"; print_r($tries); print_r($answers); // $count = 0; foreach ($answers as $key => $value) { if (in_array(strtolower($value),$tries)) { $count++; } } echo $count; echo "</pre>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 27
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 27
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 26
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 26
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/kP39d
function name:  (null)
number of ops:  31
compiled vars:  !0 = $tries, !1 = $answers, !2 = $count, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !0, <array>
    6     3        ASSIGN                                                   !1, <array>
    8     4        ASSIGN                                                   !0, <array>
    9     5        ASSIGN                                                   !1, <array>
   11     6        ECHO                                                     '%3Cpre%3E'
   12     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   15    13        ASSIGN                                                   !2, 0
   16    14      > FE_RESET_R                                       $14     !1, ->27
         15    > > FE_FETCH_R                                       ~15     $14, !3, ->27
         16    >   ASSIGN                                                   !4, ~15
   17    17        INIT_FCALL                                               'in_array'
         18        INIT_FCALL                                               'strtolower'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $17     
         21        SEND_VAR                                                 $17
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $18     
         24      > JMPZ                                                     $18, ->26
   19    25    >   PRE_INC                                                  !2
   16    26    > > JMP                                                      ->15
         27    >   FE_FREE                                                  $14
   23    28        ECHO                                                     !2
   25    29        ECHO                                                     '%3C%2Fpre%3E'
   27    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.24 ms | 1396 KiB | 19 Q