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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qMd86
function name:  (null)
number of ops:  25
compiled vars:  !0 = $basePath, !1 = $app, !2 = $kernel, !3 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'realpath'
          1        SEND_VAL                                                     '%5Cwsl.localhost%5CUbuntu%5Chome%5Ccybersecurity%5Cmiddleware%5Capps%5Capi%5C'
          2        DO_ICALL                                             $4      
          3        ASSIGN                                                       !0, $4
    4     4        CONCAT                                               ~6      !0, 'vendor%2Fautoload.php'
          5        INCLUDE_OR_EVAL                                              ~6, REQUIRE
    6     6        CONCAT                                               ~8      !0, 'bootstrap%2Fapp.php'
          7        INCLUDE_OR_EVAL                                      $9      ~8, REQUIRE_ONCE
          8        ASSIGN                                                       !1, $9
    7     9        INIT_METHOD_CALL                                             !1, 'make'
         10        SEND_VAL_EX                                                  'Illuminate%5CContracts%5CConsole%5CKernel'
         11        DO_FCALL                                          0  $11     
         12        ASSIGN                                                       !2, $11
    8    13        INIT_METHOD_CALL                                             !2, 'bootstrap'
         14        DO_FCALL                                          0          
   10    15        INIT_FCALL_BY_NAME                                           'app'
         16        SEND_VAL_EX                                                  'Modules%5CUsers%5CInterfaces%5CUserServiceInterface'
         17        DO_FCALL                                          0  $14     
         18        INIT_METHOD_CALL                                             $14, 'getAllUsers'
         19        DO_FCALL                                          0  $15     
         20        ASSIGN                                                       !3, $15
   11    21        INIT_FCALL_BY_NAME                                           'dd'
         22        SEND_VAR_EX                                                  !3
         23        DO_FCALL                                          0          
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.29 ms | 1439 KiB | 14 Q