<?php
declare(strict_types=1);

$image = imagecreatetruecolor(8, 6);
$copy = $image;
unset($image);
echo imagesx($copy), "\n";
unset($copy);
echo "references released\n";
