2

PHP Sandbox - Execute PHP code online through your browser

 1 year ago
source link: https://onlinephp.io/c/0cd2c
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Execute PHP code online through your browser

OnlinePHP.io
# Execute and compare PHP Online

PHP Sandbox

Test your PHP code with this code tester

You can test and compare your PHP code on 400+ PHP versions with this online editor.

Code loaded: PHP Type Hinting
PHP Version: 8.2.4
Output: textarea
Created: 03/23/2023 10:58pm

  • PHP Sandbox
  • Enable Left-Right modeDisable Left-Right mode
  • Enable Wide modeDisable Wide mode
  • Save or Share
  • Execute
<?php
function returnsInt(): int {
return '100';
function returnsFloat(): float {
return '100';
function returnsString(): string {
return 100;
function returnsBool(): bool {
return 0;
function returnsArray(): array {
return '100';
PHP Versions and Options (8.2.4)
Other Options

Latest Updates

- Added PHP 8.2.4, 8.1.17
- Catch for ctrl+s now open the save dialog and ctrl+r triggers a save in local storage
- Fixed error reporting issue with PHP 5.3 and lower
- Compiled Calendar extension in most PHP versions
- Renamed Autoload to "Auto Save" and enabled by default

Please let me know when you find any bugs or annoyances to help make this website better :)

See all updates in the changelog

Notes

Network access is rerouted from within the Sandbox, and system access is limited for now. Read about how to use network functions and example files.

If you feel like a function should be enabled/disabled, or if you have any other suggestions, let me know through the comments below or send me an email :).

Looking for the old version?
Check this out: The Legacy Online PHP Sandbox

Comments?
You can find comments here

Last used PHP functions


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK