PHP Recipes: Code & SQL
Runnable PHP cheat sheet
Free · In-App Purchases
Many PHP answers online were written for PHP 5 and no longer work on PHP 8. The examples here are tested on current PHP before release.
Tap Run and the real output appears right under the code, so you know what it does before it goes into your project. No PHP to install, no IDE, no setup, no account.
360+ short examples, one task each. Over 95% run on PHP 8.5.
You know what you need, but not the exact syntax:
• How do I pass values into an SQL query without concatenating strings?
• How do I add a month to a date?
• How do I build a random string from a given set of characters?
Each has a working example here.
• 21 sections, including arrays, classes and interfaces, enums, closures, exception handling, regular expressions, files, JSON and XML, databases, algorithms, and design patterns.
• What changed from PHP 7.0 to 8.4, with before-and-after code: match expressions, named arguments, constructor property promotion, readonly properties, property hooks.
• Reference, 150+ entries: keywords, magic methods, superglobals, and functions for strings, arrays, and files. Tap a word in the code to look it up.
• 200+ SQL queries: JOIN, GROUP BY, subqueries, window functions; more than half run on a practice database.
• Search looks inside the code: type array_map to find every example that uses it.
• Edit an example and run your version, or write your own.
• Works on iPhone, iPad, and Mac.
• Everything except running code works offline.
Free version: 200+ PHP examples and 120+ SQL queries, the full reference, and 12 runs and 12 edits a day (PHP and SQL runs share one limit). Full version: all examples and queries, unlimited edits and examples of your own, and up to 30 PHP and 80 SQL runs a day. One-time purchase, no subscription.
Built by a developer for developers. The project behind it has been in active development since 2015.
Ratings & Reviews
- This app has not received enough ratings or reviews to display an overview.
• Run code right in the app: tap Run and the real PHP 8.5 output appears under the example. You can also edit an example and run your version.
• PHP keyword and function reference with 150+ entries. Tap a word in the code to look it up.
• New section: what changed from PHP 7.0 to 8.4, with before-and-after code.
• Foldable phone support: when unfolded, the large screen shows the topic list and the example side by side, as on a tablet.
The developer, Fedor Obraztsov, indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy .
Data Not Collected
The developer does not collect any data from this app.
Accessibility
The developer has not yet indicated which accessibility features this app supports. Learn More
Information
- Provider
- Fedor Obraztsov
- Size
- 6.9 MB
- Category
- Developer Tools
- Compatibility
Requires iOS 17.0 or later.
- iPhone
Requires iOS 17.0 or later. - iPad
Requires iPadOS 17.0 or later. - Mac
Requires macOS 12.0 or later.
- iPhone
- Languages
English and 14 more
- English, Arabic, French, German, Hebrew, Indonesian, Italian, Japanese, Korean, Portuguese, Russian, Simplified Chinese, Spanish, Turkish, Vietnamese
- Age Rating
4+
- 4+
- In-App Purchases
Yes
- SQL queries USD 0.99
- PHP Samples USD 0.99
- Full version (no restrictions) USD 3.99
- Оperations with example USD 0.99
- Copyright
- © Петропавловск-Камчатский, Карбышева 12-174
