3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (PHP_VERSION_ID < 50400) { die(); } $cases = array( '', ':', '//', '?', '#', 'http', 'http:', 'http://', 'http://hostname', '//hostname', 'http://user:pass@hostname:1234/path/file.ext?foo=bar#id', ); foreach ($cases as $case) { print_r(parse_url($case)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/1fCPf
function name:  (null)
number of ops:  14
compiled vars:  !0 = $cases, !1 = $case
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <false>, ->2
    4     1    > > EXIT                                                     
    7     2    >   ASSIGN                                                   !0, <array>
   21     3      > FE_RESET_R                                       $3      !0, ->12
          4    > > FE_FETCH_R                                               $3, !1, ->12
   22     5    >   INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'parse_url'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
   21    11      > JMP                                                      ->4
         12    >   FE_FREE                                                  $3
   23    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.69 ms | 1394 KiB | 17 Q