Skip to content

Instantly share code, notes, and snippets.

@klodio
klodio / For benchmark purposes
Created January 11, 2012 11:50 — forked from bussyjd/For benchmark purposes
PHP random image generator
<?php
error_reporting(E_ALL);
$limit=10;
$width = 120;
$height = 20;
for($x=0;$x<$limit;$x++) {
$im = @imagecreatetruecolor(1200, 200);
$text_color = imagecolorallocate($im, 233, 14, 91);