3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 0; for ($j = 448; $j <= 959; $j++) { $filelist[$count] = "map/1/1968_" . $j . ".jpg"; $count++; } $all = new Imagick(); foreach($filelist as $file){ echo $file; //$im = new Imagick($file); //$all->addImage($im); } $all->resetIterator(); $combined = $all->appendImages(true); $combined->setImageFormat("png"); header("Content-Type: image/png"); echo $combined; ?>
based on 3uCOs
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'Imagick' not found in /in/RSGpd:8 Stack trace: #0 {main} thrown in /in/RSGpd on line 8
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'Imagick' not found in /in/RSGpd on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: imagick in /in/RSGpd on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: imagick in /in/RSGpd on line 8