3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = array( '01' => 'January', '02' => 'February', '03' => 'March', '04' => 'April', '05' => 'May', '06' => 'June', '07' => 'July', '08' => 'August', '09' => 'September', '10' => 'October', '11' => 'November', '12' => 'December' ); $_POST["finalmonth"] = 3; if (!isset($names[$_POST["finalmonth"]])) echo 'Unknown month'; else echo $names[$_POST["finalmonth"]]; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PXoQ9
function name:  (null)
number of ops:  16
compiled vars:  !0 = $names
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        FETCH_W                      global              $2      '_POST'
          2        ASSIGN_DIM                                               $2, 'finalmonth'
          3        OP_DATA                                                  3
   18     4        FETCH_R                      global              ~4      '_POST'
          5        FETCH_DIM_R                                      ~5      ~4, 'finalmonth'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~6      !0, ~5
          7        BOOL_NOT                                         ~7      ~6
          8      > JMPZ                                                     ~7, ->11
   19     9    >   ECHO                                                     'Unknown+month'
         10      > JMP                                                      ->15
   21    11    >   FETCH_R                      global              ~8      '_POST'
         12        FETCH_DIM_R                                      ~9      ~8, 'finalmonth'
         13        FETCH_DIM_R                                      ~10     !0, ~9
         14        ECHO                                                     ~10
   22    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.01 ms | 1393 KiB | 13 Q