Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $s = microtime(true);
- for ($n = 0; $n < 100; $n++) {
- $i = imagecreatetruecolor(200, 200);
- for ($y = 0; $y < 200; $y++) {
- for ($x = 0; $x < 200; $x++) {
- imagesetpixel($i, $x, $y, 0xFFFFFF);
- }
- }
- }
- $e = microtime(true);
- printf('PHP %s: 100_images_200x200 : %.4f', phpversion(), $e - $s);
- /**
- * PHP 5.3.5 : 100_images_200x200 : 11.6617
- * PHP 5.4.0beta1: 100_images_200x200 : 2.2127
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement