3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once __DIR__ . '/../vendor/autoload.php'; $config = new ConfigurationAggregate; $config->addConfigurations( new AmqpConfiguration, new ExecutableConfiguration(HelloWorldQueueExecutable::class, 'helloworld') ); $manager = new ExecutableManager($config); $router = new Router($manager); $router->start(); // When we receive 'helloworld' over websockets, it's contents are put in the 'helloworld' queue (configurable) // All you need is a worker (seperate mini-lib with simple API) to respond to this
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Warning: require_once(): open_basedir restriction in effect. File(/in/../vendor/autoload.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/81I7G on line 3 Warning: require_once(/in/../vendor/autoload.php): Failed to open stream: Operation not permitted in /in/81I7G on line 3 Fatal error: Uncaught Error: Failed opening required '/in/../vendor/autoload.php' (include_path='.:') in /in/81I7G:3 Stack trace: #0 {main} thrown in /in/81I7G on line 3
Process exited with code 255.
Output for 8.0.13
Warning: require_once(/in/../vendor/autoload.php): Failed to open stream: No such file or directory in /in/81I7G on line 3 Fatal error: Uncaught Error: Failed opening required '/in/../vendor/autoload.php' (include_path='.:') in /in/81I7G:3 Stack trace: #0 {main} thrown in /in/81I7G on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
Warning: require_once(/in/../vendor/autoload.php): failed to open stream: No such file or directory in /in/81I7G on line 3 Fatal error: require_once(): Failed opening required '/in/../vendor/autoload.php' (include_path='.:') in /in/81I7G on line 3
Process exited with code 255.
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32
Warning: require_once(): open_basedir restriction in effect. File(/in/../vendor/autoload.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/81I7G on line 3 Warning: require_once(/in/../vendor/autoload.php): failed to open stream: Operation not permitted in /in/81I7G on line 3 Fatal error: require_once(): Failed opening required '/in/../vendor/autoload.php' (include_path='.:') in /in/81I7G on line 3
Process exited with code 255.
Output for 7.1.20, 7.2.6
Warning: require_once(): open_basedir restriction in effect. File(/in/../vendor/autoload.php) is not within the allowed path(s): (/tmp:/in) in /in/81I7G on line 3 Warning: require_once(/in/../vendor/autoload.php): failed to open stream: Operation not permitted in /in/81I7G on line 3 Fatal error: require_once(): Failed opening required '/in/../vendor/autoload.php' (include_path='.:') in /in/81I7G on line 3
Process exited with code 255.

preferences:
149.88 ms | 402 KiB | 173 Q