<?php
declare(strict_types=1);

$image = imagecreatetruecolor(8, 6);
imagesetinterpolation($image, IMG_NEAREST_NEIGHBOUR);
var_dump(imagegetinterpolation($image) === IMG_NEAREST_NEIGHBOUR);
