3v4l.org

run code in 300+ PHP versions simultaneously
<?php $querystring = "test.ai"; if( (substr(strtolower($QUERYSTRING), -3) != ".ai") && (substr(strtolower($QUERYSTRING), -4) != ".eps")) { echo "not allowed"; } else { echo "allowed"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/kCkUn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $querystring, !1 = $QUERYSTRING
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test.ai'
    5     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'strtolower'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        SEND_VAL                                                 -3
          7        DO_ICALL                                         $4      
          8        IS_NOT_EQUAL                                     ~5      $4, '.ai'
          9      > JMPZ_EX                                          ~5      ~5, ->19
         10    >   INIT_FCALL                                               'substr'
         11        INIT_FCALL                                               'strtolower'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        SEND_VAL                                                 -4
         16        DO_ICALL                                         $7      
         17        IS_NOT_EQUAL                                     ~8      $7, '.eps'
         18        BOOL                                             ~5      ~8
         19    > > JMPZ                                                     ~5, ->22
    6    20    >   ECHO                                                     'not+allowed'
         21      > JMP                                                      ->23
    8    22    >   ECHO                                                     'allowed'
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.51 ms | 1395 KiB | 17 Q