3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://accounts.google.com/CheckCookie?checkedDomains=youtube&checkConnection=youtube%3A785%3A1&pstMsg=1&chtml=LoginDoneHtml&service=jotspot&continue=https%3A%2F%2Fsites.google.com%2Fa%2Fgoogle.com%2Ftrusted-photographers-de%2Fhome&gidl=CAA'; // Remove all illegal characters from a url $url = filter_var($url, FILTER_SANITIZE_URL); // Validate url if (!filter_var($url, FILTER_VALIDATE_URL) === false) { echo("$url is a valid URL"); } else { echo("$url is not a valid URL"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGt0I
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Faccounts.google.com%2FCheckCookie%3FcheckedDomains%3Dyoutube%26checkConnection%3Dyoutube%253A785%253A1%26pstMsg%3D1%26chtml%3DLoginDoneHtml%26service%3Djotspot%26continue%3Dhttps%253A%252F%252Fsites.google.com%252Fa%252Fgoogle.com%252Ftrusted-photographers-de%252Fhome%26gidl%3DCAA'
    5     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 518
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    8     6        INIT_FCALL                                               'filter_var'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 273
          9        DO_ICALL                                         $4      
         10        BOOL_NOT                                         ~5      $4
         11        TYPE_CHECK                                    4          ~5
         12      > JMPZ                                                     ~6, ->17
    9    13    >   NOP                                                      
         14        FAST_CONCAT                                      ~7      !0, '+is+a+valid+URL'
         15        ECHO                                                     ~7
         16      > JMP                                                      ->20
   11    17    >   NOP                                                      
         18        FAST_CONCAT                                      ~8      !0, '+is+not+a+valid+URL'
         19        ECHO                                                     ~8
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.13 ms | 1387 KiB | 15 Q