3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "https://www.bug.com/wp-content/uploads/2022/09/Famous-Internet-Man-512-" . urlencode("×") . "-512-px-1.png"; var_dump($url); var_dump(filter_var($url, FILTER_VALIDATE_URL)); $url = "https://www.bug.com/wp-content/uploads/2022/09/Famous-Internet-Man-512-×-512-px-1.png"; var_dump($url); var_dump(filter_var($url, FILTER_VALIDATE_URL));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/atZSB
function name:  (null)
number of ops:  28
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAL                                                 '%C3%97'
          2        DO_ICALL                                         $1      
          3        CONCAT                                           ~2      'https%3A%2F%2Fwww.bug.com%2Fwp-content%2Fuploads%2F2022%2F09%2FFamous-Internet-Man-512-', $1
          4        CONCAT                                           ~3      ~2, '-512-px-1.png'
          5        ASSIGN                                                   !0, ~3
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'filter_var'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 273
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
    7    16        ASSIGN                                                   !0, 'https%3A%2F%2Fwww.bug.com%2Fwp-content%2Fuploads%2F2022%2F09%2FFamous-Internet-Man-512-%C3%97-512-px-1.png'
    8    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'filter_var'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 273
         24        DO_ICALL                                         $10     
         25        SEND_VAR                                                 $10
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.92 ms | 1395 KiB | 19 Q