codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $string = 'thisismystring'; $i=1000000; $start = microtime(true)."\n"; while($i--) { strlen($string)>15 ? 'yes' : 'no'; } $end1 = microtime(true)."\n"; $i=1000000; while($i--) { isset($string[16]) ? 'yes' : 'no'; } $end2 = microtime(true)."\n"; echo $end1 - $start . "\n"; echo $end2 - $end1 . "\n"; ?>
Private
[
?
]
Run code
Submit