3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // if file is a GIF line below should return IMAGETYPE_GIF $image_type = exif_imagetype('image.gif'); if ($image_type) == IMAGETYPE_GIF) { $mime = image_type_to_mime_type(); // will produce "image/gif" as String. echo 'The picture is a gif, with a mime type of ' . $mime; }
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '==' (T_IS_EQUAL) in /in/AVdnO on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_IS_EQUAL in /in/AVdnO on line 6
Process exited with code 255.