3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['name']=2; //dane wejciowe $month=['styczen','luty', 'marzec']; foreach($month as $v) { if ($v==$month[$_POST['name']]) { echo $v; break; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
Branch analysis from position: 14
filename:       /in/FY6uh
function name:  (null)
number of ops:  16
compiled vars:  !0 = $month, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $2      '_POST'
          1        ASSIGN_DIM                                               $2, 'name'
          2        OP_DATA                                                  2
    4     3        ASSIGN                                                   !0, <array>
    5     4      > FE_RESET_R                                       $5      !0, ->14
          5    > > FE_FETCH_R                                               $5, !1, ->14
    7     6    >   FETCH_R                      global              ~6      '_POST'
          7        FETCH_DIM_R                                      ~7      ~6, 'name'
          8        FETCH_DIM_R                                      ~8      !0, ~7
          9        IS_EQUAL                                                 !1, ~8
         10      > JMPZ                                                     ~9, ->13
    8    11    >   ECHO                                                     !1
    9    12      > JMP                                                      ->14
    5    13    > > JMP                                                      ->5
         14    >   FE_FREE                                                  $5
   11    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.96 ms | 1393 KiB | 13 Q