3v4l.org

run code in 500+ PHP versions simultaneously
<?php /** @var \SplFileInfo[] $files */ $files = []; $key = 'foo'; $path = $files[$key]?->getPath();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pZoj1
function name:  (null)
number of ops:  8
compiled vars:  !0 = $files, !1 = $key, !2 = $path
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    5     1        ASSIGN                                                       !1, 'foo'
    6     2        FETCH_DIM_R                                          ~5      !0, !1
          3        JMP_NULL                                             $6      ~5
          4        INIT_METHOD_CALL                                             ~5, 'getPath'
          5        DO_FCALL                                          0  $6      
          6        ASSIGN                                                       !2, $6
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.54 ms | 3377 KiB | 13 Q