0 - 97.php

<?php //<!DOCTYPE html><html><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAADZJREFUeJztwQENAAAAwiD7p7v1GwAAAAAAAAAAAAAAAADw/yVtAAAAAElFTkSuQmCC" width="50" height="50">
$s = microtime(true);
// Set the image dimensions
$width = 700;
$height = 700;

// Create the image
$image = imagecreatetruecolor($width, $height);

// Set a background color
$background = imagecolorallocate($image, 255, 255, 255);

// Fill the image with the background color
imagefill($image, 0, 0, $background);

// Set the number of polygons to create
$num_polygons = rand(3, 6);

// Loop through the polygons
for ($i = 0; $i < $num_polygons; $i++) {
    
    // Set the number of sides for the polygon
    $sides = rand(3, 8);

    // Set the array for the polygon's points
    $points = array();

    // Loop through the sides to set the polygon's points
    for ($j = 0; $j < $sides; $j++) {
        $x = rand(0, $width);
        $y = rand(0, $height);
        $points[] = $x;
        $points[] = $y;
    }

    // Set a random color for the polygon
    $color = imagecolorallocate($image, rand(0, 255), rand(0, 255), rand(0, 255));

    // Draw the polygon on the image
    imagefilledpolygon($image, $points, $sides, $color);
}
$b = microtime(true);
// Set the content type header for the image
header('Content-type: image/png');

// Output the image
imagepng($image);

// Free up memory
imagedestroy($image);
$e = microtime(true);
file_put_contents("/home/peplive/Desktop/load-97.txt",$s.'|'.$b.'|'.$e);
?>