3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo basename("/afasd/asdfa/asdf/asdf.jpg"); echo "<br>"; echo basename("http://werwer.werwer.afasd/asdfa/asdf/asdf.jpg"); echo "<br>"; echo basename("\kjhjkh\jkhkjh\jhkjhjh\asdf.jpg");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I9B6X
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'basename'
          1        SEND_VAL                                                 '%2Fafasd%2Fasdfa%2Fasdf%2Fasdf.jpg'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    4     4        ECHO                                                     '%3Cbr%3E'
    5     5        INIT_FCALL                                               'basename'
          6        SEND_VAL                                                 'http%3A%2F%2Fwerwer.werwer.afasd%2Fasdfa%2Fasdf%2Fasdf.jpg'
          7        DO_ICALL                                         $1      
          8        ECHO                                                     $1
    6     9        ECHO                                                     '%3Cbr%3E'
    7    10        INIT_FCALL                                               'basename'
         11        SEND_VAL                                                 '%5Ckjhjkh%5Cjkhkjh%5Cjhkjhjh%5Casdf.jpg'
         12        DO_ICALL                                         $2      
         13        ECHO                                                     $2
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.2 ms | 1385 KiB | 15 Q