3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Tinker away! use App\Containers\DamuCRM\Actions\MakeFormDtoForErrorCreatingContract; use App\Containers\DamuCRM\DTO\CRMClientDto; use App\Containers\DamuCRM\DTO\CRMFormDto; use App\Containers\DamuCRM\Enums\CRMProjectCode; use App\Containers\DamuCRM\Enums\CRMSubject; use App\Containers\DamuCRM\Events\ErrorCreatingContract; $formDto = app(MakeFormDtoForErrorCreatingContract::class)->run( request: 'request XML', response: 'response XML', order: \App\Sections\Products\Order\Models\Order::find(387), ); event(new ErrorCreatingContract($formDto));
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function app() in /in/aamMc:11 Stack trace: #0 {main} thrown in /in/aamMc on line 11
Process exited with code 255.

preferences:
79.88 ms | 406 KiB | 59 Q