3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; class RegistrationController extends Controller { public function create(){ return view("sessions.create-user"); } public function store(Request $request){ $this->validate($request, [ 'login' => 'required', 'password' => 'required', 'phone' => 'required|numeric' ]); $user = User::create(request(['login', 'password', 'phone'])); auth()->login($user); return redirect()->home(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PR57e
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'app%5Chttp%5Ccontrollers%5Cregistrationcontroller', 'app%5Chttp%5Ccontrollers%5Ccontroller'
   33     1      > RETURN                                                   1

Class App\Http\Controllers\RegistrationController:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PR57e
function name:  create
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Cview'
          1        SEND_VAL_EX                                              'sessions.create-user'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
   13     4*     > RETURN                                                   null

End of function create

Function store:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PR57e
function name:  store
number of ops:  23
compiled vars:  !0 = $request, !1 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        INIT_METHOD_CALL                                         'validate'
          2        SEND_VAR_EX                                              !0
   19     3        SEND_VAL_EX                                              <array>
   18     4        DO_FCALL                                      0          
   25     5        INIT_STATIC_METHOD_CALL                                  'App%5CUser', 'create'
          6        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Crequest'
          7        SEND_VAL_EX                                              <array>
          8        DO_FCALL                                      0  $3      
          9        SEND_VAR_NO_REF_EX                                       $3
         10        DO_FCALL                                      0  $4      
         11        ASSIGN                                                   !1, $4
   27    12        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Cauth'
         13        DO_FCALL                                      0  $6      
         14        INIT_METHOD_CALL                                         $6, 'login'
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
   30    17        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Credirect'
         18        DO_FCALL                                      0  $8      
         19        INIT_METHOD_CALL                                         $8, 'home'
         20        DO_FCALL                                      0  $9      
         21      > RETURN                                                   $9
   32    22*     > RETURN                                                   null

End of function store

End of class App\Http\Controllers\RegistrationController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
287.43 ms | 1007 KiB | 17 Q