3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(array $paths) { var_dump(realpath($paths['app'])); } $str = '/foo/bar/baz/paths.php'; f($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PoGdh
function name:  (null)
number of ops:  5
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '%2Ffoo%2Fbar%2Fbaz%2Fpaths.php'
    6     1        INIT_FCALL                                               'f'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PoGdh
function name:  f
number of ops:  9
compiled vars:  !0 = $paths
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'realpath'
          3        FETCH_DIM_R                                      ~1      !0, 'app'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    4     8      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.44 ms | 1397 KiB | 18 Q