3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = urldecode("http://www.example.com/%D7%91%D7%93%D7%99%D7%A7%D7%94"); if(!filter_var($url, FILTER_VALIDATE_URL)) { echo "Invalid URL"; } else { echo "Valid URL"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UKr9k
function name:  (null)
number of ops:  14
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'urldecode'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.example.com%2F%25D7%2591%25D7%2593%25D7%2599%25D7%25A7%25D7%2594'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'filter_var'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 273
          7        DO_ICALL                                         $3      
          8        BOOL_NOT                                         ~4      $3
          9      > JMPZ                                                     ~4, ->12
    7    10    >   ECHO                                                     'Invalid+URL'
         11      > JMP                                                      ->13
   11    12    >   ECHO                                                     'Valid+URL'
   13    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.85 ms | 1394 KiB | 17 Q