PHP Easter Eggs

There are a couple of hidden features that you can see on just about any PHP driven website. You can get either an image or a list of credits for PHP by appending one of the following strings to the end of the URL.


?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
?=PHPE9568F35-D428-11d2-A769-00AA001ACF42
?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000

Here is a quick explanation of each code.

  • PHPE9568F34-D428-11d2-A769-00AA001ACF42 : Produces a standard PHP logo, defined by PHP_LOGO_GUID. Can also be accessed by the function call php_logo_guid(), which returns this number.
  • PHPE9568F35-D428-11d2-A769-00AA001ACF42 : Produces a Zend engine logo, defined by ZEND_LOGO_GUID. Can also be accessed by the function call zend_logo_guid(), which returns this number.
  • PHPE9568F36-D428-11d2-A769-00AA001ACF42 : Produces the easter egg, defined by PHP_EGG_LOGO_GUID. This image varies between PHP versions and operating systems but you will see either:
    • A crayon drawing of the PHP logo
    • A picture of a dog
    • A picture of a rabbit.
    • A picture of a guy with a pencil up each nostril.
  • PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 : A list of credits for PHP, defined by PHP_CREDITS_GUID. This list can also be accessed by calling the function phpcredits(), which works in the same way as phpinfo().

These don't work on all websites as the PHP team have been sensible enough to not allow these things to show when the expose_php directive in the php.ini file it set to Off.

Add new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
3 + 11 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.