3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 0; for ($j = 448; $j <= 959; $j++) { $filelist[$count] = "http://www.brusselsguardians.com/map/1/1968_" . $j . ".jpg"; $count++; } $all = new Imagick(); foreach($filelist as $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 RVElh
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'Imagick' not found in /in/bjc0a:8 Stack trace: #0 {main} thrown in /in/bjc0a on line 8
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Uncaught exception 'ImagickException' with message 'Invalid filename provided' in /in/bjc0a:11 Stack trace: #0 /in/bjc0a(11): Imagick->__construct() #1 {main}
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'Imagick' not found in /in/bjc0a 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/bjc0a 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/bjc0a on line 8