3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!in_array($status = $_GET['st'] ?? '', ['ac', 'ar'])) { echo "1: \$_GET invalid\n"; } $_GET['st'] = 'x'; if (!in_array($status = $_GET['st'] ?? '', ['ac', 'ar'])) { echo "2: \$_GET invalid\n"; } $_GET['st'] = 'ac'; if (!in_array($status = $_GET['st'] ?? '', ['ac', 'ar'])) { echo "3: \$_GET invalid\n"; } $_GET['st'] = 'ar'; if (!in_array($status = $_GET['st'] ?? '', ['ac', 'ar'])) { echo "4: \$_GET invalid\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 45
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
Branch analysis from position: 33
Branch analysis from position: 21
Branch analysis from position: 9
filename:       /in/HTZeb
function name:  (null)
number of ops:  46
compiled vars:  !0 = $status
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~1      '_GET'
          1        FETCH_DIM_IS                                     ~2      ~1, 'st'
          2        COALESCE                                         ~3      ~2
          3        QM_ASSIGN                                        ~3      ''
          4        ASSIGN                                           ~4      !0, ~3
          5        IN_ARRAY                                         ~5      ~4, <array>
          6        BOOL_NOT                                         ~6      ~5
          7      > JMPZ                                                     ~6, ->9
          8    >   ECHO                                                     '1%3A+%24_GET+invalid%0A'
    4     9    >   FETCH_W                      global              $7      '_GET'
         10        ASSIGN_DIM                                               $7, 'st'
         11        OP_DATA                                                  'x'
    5    12        FETCH_IS                                         ~9      '_GET'
         13        FETCH_DIM_IS                                     ~10     ~9, 'st'
         14        COALESCE                                         ~11     ~10
         15        QM_ASSIGN                                        ~11     ''
         16        ASSIGN                                           ~12     !0, ~11
         17        IN_ARRAY                                         ~13     ~12, <array>
         18        BOOL_NOT                                         ~14     ~13
         19      > JMPZ                                                     ~14, ->21
         20    >   ECHO                                                     '2%3A+%24_GET+invalid%0A'
    6    21    >   FETCH_W                      global              $15     '_GET'
         22        ASSIGN_DIM                                               $15, 'st'
         23        OP_DATA                                                  'ac'
    7    24        FETCH_IS                                         ~17     '_GET'
         25        FETCH_DIM_IS                                     ~18     ~17, 'st'
         26        COALESCE                                         ~19     ~18
         27        QM_ASSIGN                                        ~19     ''
         28        ASSIGN                                           ~20     !0, ~19
         29        IN_ARRAY                                         ~21     ~20, <array>
         30        BOOL_NOT                                         ~22     ~21
         31      > JMPZ                                                     ~22, ->33
         32    >   ECHO                                                     '3%3A+%24_GET+invalid%0A'
    8    33    >   FETCH_W                      global              $23     '_GET'
         34        ASSIGN_DIM                                               $23, 'st'
         35        OP_DATA                                                  'ar'
    9    36        FETCH_IS                                         ~25     '_GET'
         37        FETCH_DIM_IS                                     ~26     ~25, 'st'
         38        COALESCE                                         ~27     ~26
         39        QM_ASSIGN                                        ~27     ''
         40        ASSIGN                                           ~28     !0, ~27
         41        IN_ARRAY                                         ~29     ~28, <array>
         42        BOOL_NOT                                         ~30     ~29
         43      > JMPZ                                                     ~30, ->45
         44    >   ECHO                                                     '4%3A+%24_GET+invalid%0A'
         45    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.2 ms | 1000 KiB | 13 Q