3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sites = array('naughtyappetite.com',); $url = "https://m.naughtyappetite.com/oth.php?dynamicpage=all_1cm_universal_light_n&ver=1"; $url = parse_url($url, PHP_URL_HOST); if (!empty($url)) { $url = preg_replace('/^(www\.|m\.)/i', '', $url); } if (!empty($url) && in_array($url, $sites)) { die(var_dump($url, true)); } else { die(var_dump($url, false)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 31
Branch analysis from position: 25
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 16
filename:       /in/YNGgs
function name:  (null)
number of ops:  37
compiled vars:  !0 = $sites, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'https%3A%2F%2Fm.naughtyappetite.com%2Foth.php%3Fdynamicpage%3Dall_1cm_universal_light_n%26ver%3D1'
    5     2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    6     7        ISSET_ISEMPTY_CV                                 ~6      !1
          8        BOOL_NOT                                         ~7      ~6
          9      > JMPZ                                                     ~7, ->16
    7    10    >   INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%2F%5E%28www%5C.%7Cm%5C.%29%2Fi'
         12        SEND_VAL                                                 ''
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !1, $8
    9    16    >   ISSET_ISEMPTY_CV                                 ~10     !1
         17        BOOL_NOT                                         ~11     ~10
         18      > JMPZ_EX                                          ~11     ~11, ->24
         19    >   INIT_FCALL                                               'in_array'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $12     
         23        BOOL                                             ~11     $12
         24    > > JMPZ                                                     ~11, ->31
   10    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !1
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $13     
         29      > EXIT                                                     $13
         30*       JMP                                                      ->36
   12    31    >   INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !1
         33        SEND_VAL                                                 <false>
         34        DO_ICALL                                         $14     
         35      > EXIT                                                     $14
   13    36*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1396 KiB | 21 Q