3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($s) { echo "'$s': "; foreach (parse_url($s) as $k=>$v) echo "$k($v) "; echo "\n"; } f(' http://example.com/'); f('http://example.com#foo=1;bar=2'); f('http://example.com#foo=1/bar=2'); f('tel:1234567'); f('tel:05000');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GqOOI
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 '+http%3A%2F%2Fexample.com%2F'
          2        DO_FCALL                                      0          
    8     3        INIT_FCALL                                               'f'
          4        SEND_VAL                                                 'http%3A%2F%2Fexample.com%23foo%3D1%3Bbar%3D2'
          5        DO_FCALL                                      0          
    9     6        INIT_FCALL                                               'f'
          7        SEND_VAL                                                 'http%3A%2F%2Fexample.com%23foo%3D1%2Fbar%3D2'
          8        DO_FCALL                                      0          
   10     9        INIT_FCALL                                               'f'
         10        SEND_VAL                                                 'tel%3A1234567'
         11        DO_FCALL                                      0          
   11    12        INIT_FCALL                                               'f'
         13        SEND_VAL                                                 'tel%3A05000'
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/GqOOI
function name:  f
number of ops:  20
compiled vars:  !0 = $s, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ROPE_INIT                                     3  ~4      '%27'
          2        ROPE_ADD                                      1  ~4      ~4, !0
          3        ROPE_END                                      2  ~3      ~4, '%27%3A+'
          4        ECHO                                                     ~3
    4     5        INIT_FCALL                                               'parse_url'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8      > FE_RESET_R                                       $7      $6, ->17
          9    > > FE_FETCH_R                                       ~8      $7, !1, ->17
         10    >   ASSIGN                                                   !2, ~8
         11        ROPE_INIT                                     4  ~11     !2
         12        ROPE_ADD                                      1  ~11     ~11, '%28'
         13        ROPE_ADD                                      2  ~11     ~11, !1
         14        ROPE_END                                      3  ~10     ~11, '%29+'
         15        ECHO                                                     ~10
         16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $7
    5    18        ECHO                                                     '%0A'
    6    19      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.21 ms | 999 KiB | 19 Q