3v4l.org

run code in 500+ PHP versions simultaneously
<?php $basePath = realpath('\\wsl.localhost\Ubuntu\home\cybersecurity\middleware\apps\api\\'); require $basePath . 'vendor/autoload.php'; $app = require_once $basePath . 'bootstrap/app.php'; $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class); $kernel->bootstrap(); $test = app(\Modules\Users\Interfaces\UserServiceInterface::class)->getAllUsers(); dd($test);
Output for 8.5.0 - 8.5.9
Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in /in/qMd86 on line 4 Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='.:') in /in/qMd86:4 Stack trace: #0 {main} thrown in /in/qMd86 on line 4
Process exited with code 255.
Output for 8.2.31 - 8.2.33, 8.3.0 - 8.3.33, 8.4.1 - 8.4.24
Warning: require(): open_basedir restriction in effect. File(vendor/autoload.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/qMd86 on line 4 Warning: require(vendor/autoload.php): Failed to open stream: Operation not permitted in /in/qMd86 on line 4 Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='.:') in /in/qMd86:4 Stack trace: #0 {main} thrown in /in/qMd86 on line 4
Process exited with code 255.

preferences:
43.56 ms | 809 KiB | 4 Q