3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (exif_imagetype('image.gif') != IMAGETYPE_GIF) { echo 'The picture is not a gif'; } ?>
based on o0rpm
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function exif_imagetype() in /in/ePt08:2 Stack trace: #0 {main} thrown in /in/ePt08 on line 2
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Fatal error: Call to undefined function exif_imagetype() in /in/ePt08 on line 2
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Warning: exif_imagetype(image.gif): failed to open stream: No such file or directory in /in/ePt08 on line 2 The picture is not a gif