3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filePath = 'missing_file'; $realFilePath = realpath($filePath); $fileInfo = new SplFileInfo($realFilePath); var_dump($fileInfo->getRealPath());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xflr4
function name:  (null)
number of ops:  15
compiled vars:  !0 = $filePath, !1 = $realFilePath, !2 = $fileInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'missing_file'
    5     1        INIT_FCALL                                               'realpath'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    7     5        NEW                                              $6      'SplFileInfo'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $6
    9     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !2, 'getRealPath'
         11        DO_FCALL                                      0  $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.91 ms | 1394 KiB | 17 Q