3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('URL', '127.0.0.1'); $filename = 'a č o.png'; echo '<a href="' . URL . 'file/show/' . rawurlencode($filename) . '" target="_blank"> Show file </a>' . "\n"; //gives link leading to: 127.0.0.1/file%2Fshow%2Fa č o.png $address = rawurlencode($filename); echo '<a href="' . URL . 'file/show/' . $address . '" target="_blank"> Show file </a>'; //gives link leading to: 127.0.0.1/file/show/a č o.png ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RDT0f
function name:  (null)
number of ops:  26
compiled vars:  !0 = $filename, !1 = $address
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'URL'
          2        SEND_VAL                                                 '127.0.0.1'
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 'a+%C4%8D+o.png'
    4     5        FETCH_CONSTANT                                   ~4      'URL'
          6        CONCAT                                           ~5      '%3Ca+href%3D%22', ~4
          7        CONCAT                                           ~6      ~5, 'file%2Fshow%2F'
          8        INIT_FCALL                                               'rawurlencode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        CONCAT                                           ~8      ~6, $7
         12        CONCAT                                           ~9      ~8, '%22+target%3D%22_blank%22%3E+Show+file+%3C%2Fa%3E'
         13        CONCAT                                           ~10     ~9, '%0A'
         14        ECHO                                                     ~10
    7    15        INIT_FCALL                                               'rawurlencode'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !1, $11
    8    19        FETCH_CONSTANT                                   ~13     'URL'
         20        CONCAT                                           ~14     '%3Ca+href%3D%22', ~13
         21        CONCAT                                           ~15     ~14, 'file%2Fshow%2F'
         22        CONCAT                                           ~16     ~15, !1
         23        CONCAT                                           ~17     ~16, '%22+target%3D%22_blank%22%3E+Show+file+%3C%2Fa%3E'
         24        ECHO                                                     ~17
   11    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.24 ms | 1387 KiB | 17 Q