3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.google.de/maps/about/partners/businessview/get-started/'; // 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/XeJCq
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, 'http%3A%2F%2Fwww.google.de%2Fmaps%2Fabout%2Fpartners%2Fbusinessview%2Fget-started%2F'
    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:
158.54 ms | 1395 KiB | 15 Q