Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear
select version() as Version;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $randomArticle = <<<__EOF PHP: Hypertext Preprocessor Downloads Documentation Get Involved Help Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Supported Protocols and Wrappers Security Introduction General considerations Installed as CGI binary Installed as an Apache module Session Security Filesystem Security Database Security Error Reporting User Submitted Data Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation GUI Extensions Keyboard Shortcuts ? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search (current page) / Focus search box A popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world. What's new in 8.2 Download 8.2.12 · Changelog · Upgrading 8.1.25 · Changelog · Upgrading 8.0.30 · Changelog · Upgrading 26 Oct 2023 PHP 8.1.25 Released! The PHP development team announces the immediate availability of PHP 8.1.25. This is a bug fix release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.25 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 26 Oct 2023 PHP 8.2.12 Released! The PHP development team announces the immediate availability of PHP 8.2.12. This is a bug fix release. All PHP 8.2 users are encouraged to upgrade to this version. For source downloads of PHP 8.2.12 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 26 Oct 2023 PHP 8.3.0 RC 5 available for testing The PHP team is pleased to announce the release of PHP 8.3.0, RC 5. This is the fifth release candidate, continuing the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0, RC 5 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be the fourth release candidate (RC 5), planned for 26 October 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 12 Oct 2023 PHP 8.3.0 RC 4 available for testing The PHP team is pleased to announce the release of PHP 8.3.0, RC 4. This is the fourth release candidate, continuing the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0, RC 4 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be the fifth release candidate (RC 5), planned for 26 October 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 28 Sep 2023 PHP 8.1.24 Released! The PHP development team announces the immediate availability of PHP 8.1.24. This is a bug fix release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.24 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 28 Sep 2023 PHP 8.3.0 RC 3 available for testing The PHP team is pleased to announce the release of PHP 8.3.0, RC 3. This is the third release candidate, continuing the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0, RC 3 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be the fourth release candidate (RC 4), planned for 12 October 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 28 Sep 2023 PHP 8.2.11 Released! The PHP development team announces the immediate availability of PHP 8.2.11. This is a bug fix release. All PHP 8.2 users are encouraged to upgrade to this version. For source downloads of PHP 8.2.11 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 14 Sep 2023 PHP 8.3.0 RC 2 available for testing The PHP team is pleased to announce the release of PHP 8.3.0, RC 2. This is the second release candidate, continuing the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0, RC 2 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be the third release candidate (RC 3), planned for 28 September 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 31 Aug 2023 PHP 8.1.23 Released! The PHP development team announces the immediate availability of PHP 8.1.23. This is a bug fix release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.23 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 31 Aug 2023 PHP 8.2.10 Released! The PHP development team announces the immediate availability of PHP 8.2.10. This is a bug fix release. All PHP 8.2 users are encouraged to upgrade to this version. For source downloads of PHP 8.2.10 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 31 Aug 2023 PHP 8.3.0 RC 1 available for testing The PHP team is pleased to announce the release of PHP 8.3.0, RC 1. This is the first release candidate, continuing the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0, RC 1 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be the second release candidate (RC 2), planned for 14 September 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 17 Aug 2023 PHP 8.3.0 Beta 3 available for testing The PHP team is pleased to announce the third beta release of PHP 8.3.0, Beta 3. This continues the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0 Beta 3 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be RC 1, planned for Aug 31 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 16 Aug 2023 PHP 8.2.9 Released! The PHP development team announces the immediate availability of PHP 8.2.9. This is a security release. All PHP 8.2 users are encouraged to upgrade to this version. Windows source and binaries are not synchronized and do not contain a fix for GH-11854. For source downloads of PHP 8.2.9 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 04 Aug 2023 PHP 8.0.30 Released! The PHP development team announces the immediate availability of PHP 8.0.30. This is a security release. All PHP 8.0 users are encouraged to upgrade to this version. For source downloads of PHP 8.0.30 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 03 Aug 2023 PHP 8.3.0 Beta 2 available for testing The PHP team is pleased to announce the second beta release of PHP 8.3.0, Beta 2. This continues the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0 Beta 2 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be Beta 3, planned for Aug 17 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 03 Aug 2023 PHP 8.1.22 Released! The PHP development team announces the immediate availability of PHP 8.1.22. This is a security release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.22 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 20 Jul 2023 PHP 8.3.0 Beta 1 available for testing The PHP team is pleased to announce the first beta release of PHP 8.3.0, Beta 1. This continues the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0 Beta 1 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be Beta 2, planned for Aug 3 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 06 Jul 2023 PHP 8.1.21 Released! The PHP development team announces the immediate availability of PHP 8.1.21. This is a bug fix release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.21 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 06 Jul 2023 PHP 8.2.8 Released! The PHP development team announces the immediate availability of PHP 8.2.8. This is a bug fix release. All PHP 8.2 users are encouraged to upgrade to this version. For source downloads of PHP 8.2.8 please visit our downloads page , Windows source and binaries can be found on windows.php.net/download/ . The list of changes is recorded in the ChangeLog . 06 Jul 2023 PHP 8.3.0 Alpha 3 available for testing The PHP team is pleased to announce the third testing release of PHP 8.3.0, Alpha 3. This continues the PHP 8.3 release cycle, the rough outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0 Alpha 3 please visit the download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be Beta 1, planned for 20 Jul 2023. The signatures for the release can be found in the manifest or on the QA site . Thank you for helping us make PHP better. 22 Jun 2023 PHP 8.3.0 Alpha 2 available for testing The PHP team is pleased to announce the second testing release of PHP 8.3.0, Alpha 2. This continues the PHP 8.3 release cycle, the rouch outline of which is specified in the PHP Wiki . For source downloads of PHP 8.3.0 Alpha 2 please visit download page . Please carefully test this version and report any issues found in the bug reporting system . Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be Alpha 3, planned for 6 July 2023. The signatures for this release can be found in the manifest or on the QA site . Thank you for helping us make PHP better! 08 Jun 2023 PHP 8.1.20 Released! The PHP development team announces the immediate availability of PHP 8.1.20. This is a security release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.20 please visit our downloads page __EOF; function getLongTailKeywords($str, $len = 5, $min = 2){ $keywords = array(); $common = array('i','a','about','an','and','are','as','at','be','by','com','de','en','for','from','how','in','is','it','la','of','on','or','that','the','this','to','was','what','when','where','who','will','with','und','the','www'); $str = preg_replace('/[^a-z0-9\s-]+/', '', strtolower(strip_tags($str))); $str = preg_split('/\s+-\s+|\s+/', $str, -1, PREG_SPLIT_NO_EMPTY); while(0<$len--) for($i=0;$i<count($str)-$len;$i++){ $word = array_slice($str, $i, $len+1); if(in_array($word[0], $common)||in_array(end($word), $common)) continue; $word = implode(' ', $word); if(!isset($keywords[$len][$word])) $keywords[$len][$word] = 0; $keywords[$len][$word]++; } $return = array(); foreach($keywords as &$keyword){ $keyword = array_filter($keyword, function($v) use($min){ return !!($v>$min); }); arsort($keyword); $return = array_merge($return, $keyword); } return $return; } print_r(getLongTailKeywords($randomArticle)); ?>
Copy Clear