3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = "http://ftp.ellcom.ru/USER/Games/Dzhamal/Batman.Arkham%20City.v%201.03%20+%2014%20DLC.(1C-%d0%a1%d0%be%d1%84%d1%82%d0%9a%d0%bb%d0%b0%d0%b1).(2011).Repack.iso"; $fileName = pathinfo($link, 'PATHINFO_FILENAME');// filename - extension echo "<p>$fileName</p>"; $fileName = urldecode($fileName);// removes 20%, ##, + from string echo "<p>$fileName</p>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a42HE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $link, !1 = $fileName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fftp.ellcom.ru%2FUSER%2FGames%2FDzhamal%2FBatman.Arkham%2520City.v%25201.03%2520%2B%252014%2520DLC.%281C-%25d0%25a1%25d0%25be%25d1%2584%25d1%2582%25d0%259a%25d0%25bb%25d0%25b0%25d0%25b1%29.%282011%29.Repack.iso'
    4     1        INIT_FCALL                                               'pathinfo'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'PATHINFO_FILENAME'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        ROPE_INIT                                     3  ~6      '%3Cp%3E'
          7        ROPE_ADD                                      1  ~6      ~6, !1
          8        ROPE_END                                      2  ~5      ~6, '%3C%2Fp%3E'
          9        ECHO                                                     ~5
    6    10        INIT_FCALL                                               'urldecode'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    7    14        ROPE_INIT                                     3  ~11     '%3Cp%3E'
         15        ROPE_ADD                                      1  ~11     ~11, !1
         16        ROPE_END                                      2  ~10     ~11, '%3C%2Fp%3E'
         17        ECHO                                                     ~10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.97 ms | 1395 KiB | 17 Q