⚡ PHP 8.3.30

Graphics gd · imagick · svg · chart.js

Four different ways to draw, four different engines — three of them pure server-side PHP.

sine and cosine plot
GD — sin/cos plotted line-by-line onto a truecolor canvas, streamed as PNG.
mandelbrot set
GD — the Mandelbrot set, 640×480 pixels each iterated up to 120× in PHP.
imagick generated art
Imagick — a gradient run through swirl + wave filters and annotated, via ImageMagick bindings.

Hand-built SVG zero dependencies

This bar chart is a string of SVG assembled by PHP from the dataset below — no image library, infinitely crisp.

Jan65Feb79Mar78Apr75May74Jun69Jul49Aug18Sep-3Oct4Nov36Dec72
Generated by graphics.php — view source, it's literally text.

Chart.js php data → js render

The one place JS does the drawing — but the numbers come straight from PHP via json_encode().