3v4l.org

run code in 300+ PHP versions simultaneously
<?php function file_stream_wrapper_uri_normalize($uri) { $scheme = file_uri_scheme($uri); if ($scheme && file_stream_wrapper_valid_scheme($scheme)) { $target = file_uri_target($uri); if ($target !== FALSE) { $uri = $scheme . '://' . $target; } } return $uri; } $uri = 'test/example.exe'; echo file_stream_wrapper_uri_normalize($uri);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amBnV
function name:  (null)
number of ops:  6
compiled vars:  !0 = $uri
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, 'test%2Fexample.exe'
   18     1        INIT_FCALL                                               'file_stream_wrapper_uri_normalize'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function file_stream_wrapper_uri_normalize:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 20
Branch analysis from position: 10
filename:       /in/amBnV
function name:  file_stream_wrapper_uri_normalize
number of ops:  22
compiled vars:  !0 = $uri, !1 = $scheme, !2 = $target
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL_BY_NAME                                       'file_uri_scheme'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
    6     5      > JMPZ_EX                                          ~5      !1, ->10
          6    >   INIT_FCALL_BY_NAME                                       'file_stream_wrapper_valid_scheme'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $6      
          9        BOOL                                             ~5      $6
         10    > > JMPZ                                                     ~5, ->20
    7    11    >   INIT_FCALL_BY_NAME                                       'file_uri_target'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $7      
         14        ASSIGN                                                   !2, $7
    9    15        TYPE_CHECK                                  1018          !2
         16      > JMPZ                                                     ~9, ->20
   10    17    >   CONCAT                                           ~10     !1, '%3A%2F%2F'
         18        CONCAT                                           ~11     ~10, !2
         19        ASSIGN                                                   !0, ~11
   13    20    > > RETURN                                                   !0
   14    21*     > RETURN                                                   null

End of function file_stream_wrapper_uri_normalize

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.66 ms | 1399 KiB | 14 Q