Skip to content

Instantly share code, notes, and snippets.

View pulzarraider's full-sized avatar

Andrej Hudec pulzarraider

View GitHub Profile
@pulzarraider
pulzarraider / profiler_parse_url.php
Created May 5, 2012 09:47
Test performance of parse_url with or without @ + version check
<?php
header('Content-Type: text/plain');
error_reporting(E_ALL);
$url = 'http://username:password@hostname/path?arg=value#anchor';
$iterations = 100000;
//initialization
$x = parse_url($url);