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 gtAkE
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'Imagick' not found in /in/3uCOs:8 Stack trace: #0 {main} thrown in /in/3uCOs on line 8
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
map/1/1968_448.jpg Fatal error: Uncaught exception 'ImagickException' with message 'Invalid filename provided' in /in/3uCOs:12 Stack trace: #0 /in/3uCOs(12): 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/3uCOs 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/3uCOs 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/3uCOs on line 8