Online PHP Functions

String functions

Hashing functions

  • md5()

    Calculate the md5 hash of a string

  • sha1()

    Calculate the sha1 hash of a string

  • crc32()

    Calculates the crc32 polynomial of a string

  • crypt()

    One-way string hashing

Encoding functions

Date functions

  • date()

    Format a local time/date

  • time()

    Return current Unix timestamp

  • strftime()

    Format a local time/date according to locale settings

  • strtotime()

    Parse about any English textual datetime description into a Unix timestamp

Regular Expression functions

URL functions

Path functions

  • pathinfo()

    Returns information about a file path

  • dirname()

    Returns a parent directory's path

  • basename()

    Returns trailing name component of path

Math functions

Network functions

  • ip2long()

    Converts a string containing an (IPv4) address into a long integer

  • long2ip()

    Converts an long integer address into a string in (IPv4) Internet standard dotted format