3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numberOfImages = 3; $x = 940; $y = 420; $background = imagecreatetruecolor($x, $y*3); $firstUrl = '/images/upload/photoalbum/photo/1.jpg'; $secondUrl = '/images/upload/photoalbum/photo/2.jpg'; $thirdUrl = '/images/upload/photoalbum/photo/3.jpg'; $outputImage = $background; $first = imagecreatefromjpeg($firstUrl); $second = imagecreatefromjpeg($secondUrl); $third = imagecreatefromjpeg($thirdUrl); imagecopymerge($outputImage,$first,0,0,0,0, $x, $y,100); imagecopymerge($outputImage,$second,0,$y,0,0, $x, $y,100); imagecopymerge($outputImage,$third,0,$y*2,0,0, $x, $y,100); imagejpeg($outputImage, APPLICATION_PATH .'/images/upload/photoalbum/photo/test.jpg'); imagedestroy($outputImage); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in /in/ejvrv:5 Stack trace: #0 {main} thrown in /in/ejvrv on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.28 ms | 401 KiB | 8 Q