3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.09 ms | 1394 KiB | 15 Q