3v4l.org

run code in 500+ PHP versions simultaneously
<?php function libraries_get_path($library) { return $library . 'path'; } function feeds_library_exists($file, $library) { $path = (TRUE) ? libraries_get_path($library) : FALSE; if ($path && is_string("$path/$file")) { return var_dump("$path/$file"); } } feeds_library_exists($file = 'filename', $library = 'library/');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FjC7i
function name:  (null)
number of ops:  7
compiled vars:  !0 = $file, !1 = $library
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                                   'feeds_library_exists'
          1        ASSIGN                                               ~2      !0, 'filename'
          2        SEND_VAL                                                     ~2
          3        ASSIGN                                               ~3      !1, 'library%2F'
          4        SEND_VAL                                                     ~3
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Function libraries_get_path:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FjC7i
function name:  libraries_get_path
number of ops:  4
compiled vars:  !0 = $library
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        CONCAT                                               ~1      !0, 'path'
          2      > RETURN                                                       ~1
    5     3*     > RETURN                                                       null

End of function libraries_get_path

Function feeds_library_exists:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
Branch analysis from position: 16
filename:       /in/FjC7i
function name:  feeds_library_exists
number of ops:  25
compiled vars:  !0 = $file, !1 = $library, !2 = $path
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    8     2      > JMPZ                                                         <true>, ->8
          3    >   INIT_FCALL                                                   'libraries_get_path'
          4        SEND_VAR                                                     !1
          5        DO_FCALL                                          0  $3      
          6        QM_ASSIGN                                            ~4      $3
          7      > JMP                                                          ->9
          8    >   QM_ASSIGN                                            ~4      <false>
          9    >   ASSIGN                                                       !2, ~4
    9    10      > JMPZ_EX                                              ~6      !2, ->16
         11    >   ROPE_INIT                                         3  ~8      !2
         12        ROPE_ADD                                          1  ~8      ~8, '%2F'
         13        ROPE_END                                          2  ~7      ~8, !0
         14        TYPE_CHECK                                       64  ~10     ~7
         15        BOOL                                                 ~6      ~10
         16    > > JMPZ                                                         ~6, ->24
   10    17    >   INIT_FCALL                                                   'var_dump'
         18        ROPE_INIT                                         3  ~12     !2
         19        ROPE_ADD                                          1  ~12     ~12, '%2F'
         20        ROPE_END                                          2  ~11     ~12, !0
         21        SEND_VAL                                                     ~11
         22        DO_ICALL                                             $14     
         23      > RETURN                                                       $14
   12    24    > > RETURN                                                       null

End of function feeds_library_exists

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.63 ms | 2075 KiB | 11 Q