Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $data = "aaaaaaaaaaaaasdffffffffffffffsdfsdfdsfsdfsdfsdfffffffffff 11111 sdfsdfsdfsf aasdfa xxx zzz0bbb-3345sdfsfdsxxxxxxxxxxxxxxxxxxxxxx";
- for( $i = 0; $i < 1000000; $i++ )
- {
- preg_match( "/b+-([0-9]+)/", $data, $matches );
- $t += $matches[ 1 ];
- }
- echo $t."\n";
- ?>
- ----------------------
- 3345000000
- real 0m1.632s
- user 0m1.623s
- sys 0m0.007s
Advertisement
Add Comment
Please, Sign In to add comment