3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class ClientDataController extends Controller { public function index() { return view('client-data'); } public function upload_pass(Request $request) { foreach ($request->file() as $file) { $file->move(storage_path('files'), time().'_'.$file->getClientOriginalName()); } } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ntXv2
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'app%5Chttp%5Ccontrollers%5Cclientdatacontroller', 'app%5Chttp%5Ccontrollers%5Ccontroller'
   28     1      > RETURN                                                   1

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

End of function index

Function upload_pass:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/ntXv2
function name:  upload_pass
number of ops:  21
compiled vars:  !0 = $request, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        INIT_METHOD_CALL                                         !0, 'file'
          2        DO_FCALL                                      0  $2      
          3      > FE_RESET_R                                       $3      $2, ->19
          4    > > FE_FETCH_R                                               $3, !1, ->19
   22     5    >   INIT_METHOD_CALL                                         !1, 'move'
          6        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Cstorage_path'
          7        SEND_VAL_EX                                              'files'
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR_NO_REF_EX                                       $4
         10        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Ctime'
         11        DO_FCALL                                      0  $5      
         12        CONCAT                                           ~6      $5, '_'
         13        INIT_METHOD_CALL                                         !1, 'getClientOriginalName'
         14        DO_FCALL                                      0  $7      
         15        CONCAT                                           ~8      ~6, $7
         16        SEND_VAL_EX                                              ~8
         17        DO_FCALL                                      0          
   21    18      > JMP                                                      ->4
         19    >   FE_FREE                                                  $3
   24    20      > RETURN                                                   null

End of function upload_pass

End of class App\Http\Controllers\ClientDataController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.82 ms | 1005 KiB | 16 Q