An example is print_r( $GLOBALS) because $GLOBALS is itself a global variable that contains a reference to itself.
This function will continue forever if given an array or object that contains a direct or indirect reference to itself or that contains an array or object on a deeper level that does so. This is especially TRUE for print_r($GLOBALS), as $GLOBALS is itself a global variable and contains a reference to itself as such.