3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imageFileType = 'JPG'; if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" && $imageFileType != "JPG" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; } else { echo 'Correct'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 11
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/8id0s
function name:  (null)
number of ops:  19
compiled vars:  !0 = $imageFileType
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'JPG'
    5     1        IS_NOT_EQUAL                                     ~2      !0, 'jpg'
          2      > JMPZ_EX                                          ~2      ~2, ->5
          3    >   IS_NOT_EQUAL                                     ~3      !0, 'png'
          4        BOOL                                             ~2      ~3
          5    > > JMPZ_EX                                          ~2      ~2, ->8
          6    >   IS_NOT_EQUAL                                     ~4      !0, 'jpeg'
          7        BOOL                                             ~2      ~4
          8    > > JMPZ_EX                                          ~2      ~2, ->11
    6     9    >   IS_NOT_EQUAL                                     ~5      !0, 'gif'
         10        BOOL                                             ~2      ~5
         11    > > JMPZ_EX                                          ~2      ~2, ->14
         12    >   IS_NOT_EQUAL                                     ~6      !0, 'JPG'
         13        BOOL                                             ~2      ~6
         14    > > JMPZ                                                     ~2, ->17
    7    15    >   ECHO                                                     'Sorry%2C+only+JPG%2C+JPEG%2C+PNG+%26+GIF+files+are+allowed.'
    5    16      > JMP                                                      ->18
    9    17    >   ECHO                                                     'Correct'
   10    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.09 ms | 1007 KiB | 13 Q