Display the drop-down list

Test of parse_url()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = 'http://username:password@hostname/path?arg=value#anchor'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
'scheme' => 'http',
      
'host' => 'hostname',
      
'user' => 'username',
      
'pass' => 'password',
      
'path' => '/path',
      
'query' => 'arg=value',
      
'fragment' => 'anchor',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'http://username:password@hostname/path?arg=value#anchor',
  
=> 'PHP_URL_PATH',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => '/path',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = '//www.example.com/path?googleguy=googley'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
'host' => 'www.example.com',
      
'path' => '/path',
      
'query' => 'googleguy=googley',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]