<?php
declare(strict_types=1);

$image = imagecreatetruecolor(8, 6);
$color = imagecolorallocatealpha($image, 10, 20, 30, 64);
echo json_encode(imagecolorsforindex($image, $color)), "\n";
