3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = basename( "/home/james/docs/index.html" ); $filename = basename( "/home/james/docs/myfile.doc", ".doc" ); var_dump($filename);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o9Fnr
function name:  (null)
number of ops:  13
compiled vars:  !0 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'basename'
          1        SEND_VAL                                                 '%2Fhome%2Fjames%2Fdocs%2Findex.html'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'basename'
          5        SEND_VAL                                                 '%2Fhome%2Fjames%2Fdocs%2Fmyfile.doc'
          6        SEND_VAL                                                 '.doc'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.5 ms | 1394 KiB | 17 Q