<?php
declare(strict_types=1);

$source = imagecreatetruecolor(4, 4);
imagefill($source, 0, 0, imagecolorallocate($source, 255, 0, 0));
$image = imagecreatetruecolor(8, 6);
imagefill($image, 0, 0, imagecolorallocate($image, 0, 80, 220));
imagecopymerge($image, $source, 2, 1, 0, 0, 4, 4, 50);
imagepng($image, "composition.png");
echo getimagesize("composition.png")[0], "x", getimagesize("composition.png")[1], "\n";
