3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info = new SplFileInfo('foo.txt'); var_dump($info->getFilename()); $info = new SplFileInfo('/path/to/foo.txt'); var_dump($info->getFilename()); $info = new SplFileInfo('http://www.php.net/'); var_dump($info->getFilename()); $info = new SplFileInfo('http://www.php.net/svn.php'); var_dump($info->getFilename());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlMah
function name:  (null)
number of ops:  37
compiled vars:  !0 = $info
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplFileInfo'
          1        SEND_VAL_EX                                              'foo.txt'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'getFilename'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    6     9        NEW                                              $6      'SplFileInfo'
         10        SEND_VAL_EX                                              '%2Fpath%2Fto%2Ffoo.txt'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !0, $6
    7    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !0, 'getFilename'
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
    9    18        NEW                                              $11     'SplFileInfo'
         19        SEND_VAL_EX                                              'http%3A%2F%2Fwww.php.net%2F'
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !0, $11
   10    22        INIT_FCALL                                               'var_dump'
         23        INIT_METHOD_CALL                                         !0, 'getFilename'
         24        DO_FCALL                                      0  $14     
         25        SEND_VAR                                                 $14
         26        DO_ICALL                                                 
   12    27        NEW                                              $16     'SplFileInfo'
         28        SEND_VAL_EX                                              'http%3A%2F%2Fwww.php.net%2Fsvn.php'
         29        DO_FCALL                                      0          
         30        ASSIGN                                                   !0, $16
   13    31        INIT_FCALL                                               'var_dump'
         32        INIT_METHOD_CALL                                         !0, 'getFilename'
         33        DO_FCALL                                      0  $19     
         34        SEND_VAR                                                 $19
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.18 ms | 1016 KiB | 14 Q