Re: Which is faster?

From: Date: Thu, 21 Nov 2002 21:58:28 +0000
Subject: Re: Which is faster?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125515@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 $start = microtime(); for ( $x=0 ; $x<1000 ; $x++ ) eregi('[A-Z]',$variable); echo (microtime()-$start)."\n"; $start = microtime(); for ( $x=0 ; $x<1000 ; $x++ ) ereg('A-Za-z',$variable); echo (microtime()-$start)."\n"; - -- In this definition is contained the answer to the question as to what gives men the power to establish laws. What gives them the power to establish laws is the same thing which secures obedience to them - organized violence. - -Leo Nikolaevich Tolstoy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD4DBQE93Vca/rncFku1MdIRAut6AJ0RFMRFmHRF8Gp0wtdt5iaXxIaW4QCVFNsg YsupIsH9znrrwpTaIk4Omg== =MpYB -----END PGP SIGNATURE-----

« previous php.general (#125515) next »