3v4l.org

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

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

End of function feeds_library_exists

Function libraries_get_path:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BHISv
function name:  libraries_get_path
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                       'path'
   11     1*     > RETURN                                                       null

End of function libraries_get_path

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.1 ms | 2171 KiB | 10 Q