3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url ="[::1]/challenges/flag.php"; if (preg_match ('/[https?|[st]?ftp|dict|gopher|scp|telnet|ldaps?]\:\/\/.*(\d+|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})/i', $url)) { die('Please do not access by IP.'); } elseif (preg_match ('/localhost/i', $url)) { die ('Please do not access localhost.'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8ZGhg
function name:  (null)
number of ops:  15
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%3A%3A1%5D%2Fchallenges%2Fflag.php'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5Bhttps%3F%7C%5Bst%5D%3Fftp%7Cdict%7Cgopher%7Cscp%7Ctelnet%7Cldaps%3F%5D%5C%3A%5C%2F%5C%2F.%2A%28%5Cd%2B%7C%5B0-9%5D%7B1%2C3%7D%5C.%5B0-9%5D%7B1%2C3%7D%5C.%5B0-9%5D%7B1%2C3%7D%5C.%5B0-9%5D%7B1%2C3%7D%29%2Fi'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->8
    6     6    > > EXIT                                                     'Please+do+not+access+by+IP.'
          7*       JMP                                                      ->14
    7     8    >   INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%2Flocalhost%2Fi'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $3      
         12      > JMPZ                                                     $3, ->14
    8    13    > > EXIT                                                     'Please+do+not+access+localhost.'
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.4 ms | 1395 KiB | 15 Q