DumpStamp code from PHP 2013.