3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classDays = ''; if($classDays[0] == '') { $classDaysD = 'Online'; } else { if (in_array(1, $classDays)) { $classDaysD = 'M'; } if (in_array(2,$classDays)) { $classDaysD .= ' T'; } if (in_array(3,$classDays)) { $classDaysD .= ' W'; } if (in_array(4,$classDays)) { $classDaysD .= ' Th'; } if (in_array(5,$classDays)) { $classDaysD .= ' F'; } if (in_array(6,$classDays)) { $classDaysD .= ' S'; } if (in_array(7,$classDays)) { $classDaysD .= ' Su'; } if ($classDaysD == '') { $classDaysD = 'M & W'; } } echo $classDaysD;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 42
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 48
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 51
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 51
Branch analysis from position: 48
Branch analysis from position: 42
Branch analysis from position: 36
Branch analysis from position: 30
Branch analysis from position: 24
Branch analysis from position: 18
Branch analysis from position: 12
filename:       /in/EdD63
function name:  (null)
number of ops:  53
compiled vars:  !0 = $classDays, !1 = $classDaysD
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    4     1        FETCH_DIM_R                                      ~3      !0, 0
          2        IS_EQUAL                                                 ~3, ''
          3      > JMPZ                                                     ~4, ->6
    5     4    >   ASSIGN                                                   !1, 'Online'
          5      > JMP                                                      ->51
    7     6    >   INIT_FCALL                                               'in_array'
          7        SEND_VAL                                                 1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10      > JMPZ                                                     $6, ->12
    8    11    >   ASSIGN                                                   !1, 'M'
   10    12    >   INIT_FCALL                                               'in_array'
         13        SEND_VAL                                                 2
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $8      
         16      > JMPZ                                                     $8, ->18
   11    17    >   ASSIGN_OP                                     8          !1, '+T'
   13    18    >   INIT_FCALL                                               'in_array'
         19        SEND_VAL                                                 3
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $10     
         22      > JMPZ                                                     $10, ->24
   14    23    >   ASSIGN_OP                                     8          !1, '+W'
   16    24    >   INIT_FCALL                                               'in_array'
         25        SEND_VAL                                                 4
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $12     
         28      > JMPZ                                                     $12, ->30
   17    29    >   ASSIGN_OP                                     8          !1, '+Th'
   19    30    >   INIT_FCALL                                               'in_array'
         31        SEND_VAL                                                 5
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $14     
         34      > JMPZ                                                     $14, ->36
   20    35    >   ASSIGN_OP                                     8          !1, '+F'
   22    36    >   INIT_FCALL                                               'in_array'
         37        SEND_VAL                                                 6
         38        SEND_VAR                                                 !0
         39        DO_ICALL                                         $16     
         40      > JMPZ                                                     $16, ->42
   23    41    >   ASSIGN_OP                                     8          !1, '+S'
   25    42    >   INIT_FCALL                                               'in_array'
         43        SEND_VAL                                                 7
         44        SEND_VAR                                                 !0
         45        DO_ICALL                                         $18     
         46      > JMPZ                                                     $18, ->48
   26    47    >   ASSIGN_OP                                     8          !1, '+Su'
   28    48    >   IS_EQUAL                                                 !1, ''
         49      > JMPZ                                                     ~20, ->51
   29    50    >   ASSIGN                                                   !1, 'M+%26+W'
   33    51    >   ECHO                                                     !1
   34    52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.33 ms | 1400 KiB | 15 Q