3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; class ClientDataController extends Controller { public function index() { return view('client-data'); } public function upload_pass(Request $request) { foreach ($request->file() as $file) { foreach ($file as $f) { $f->move(storage_path('files'), time().'_'.$f->getClientOriginalName()); } } return "Успех"; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VNdUX
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'app%5Chttp%5Ccontrollers%5Cclientdatacontroller', 'app%5Chttp%5Ccontrollers%5Ccontroller'
   30     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/VNdUX
function name:  index
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     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
   15     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 = 23
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 23
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 21
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/VNdUX
function name:  upload_pass
number of ops:  26
compiled vars:  !0 = $request, !1 = $file, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   20     1        INIT_METHOD_CALL                                         !0, 'file'
          2        DO_FCALL                                      0  $3      
          3      > FE_RESET_R                                       $4      $3, ->23
          4    > > FE_FETCH_R                                               $4, !1, ->23
   21     5    > > FE_RESET_R                                       $5      !1, ->21
          6    > > FE_FETCH_R                                               $5, !2, ->21
   22     7    >   INIT_METHOD_CALL                                         !2, 'move'
          8        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Cstorage_path'
          9        SEND_VAL_EX                                              'files'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR_NO_REF_EX                                       $6
         12        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Ctime'
         13        DO_FCALL                                      0  $7      
         14        CONCAT                                           ~8      $7, '_'
         15        INIT_METHOD_CALL                                         !2, 'getClientOriginalName'
         16        DO_FCALL                                      0  $9      
         17        CONCAT                                           ~10     ~8, $9
         18        SEND_VAL_EX                                              ~10
         19        DO_FCALL                                      0          
   21    20      > JMP                                                      ->6
         21    >   FE_FREE                                                  $5
   20    22      > JMP                                                      ->4
         23    >   FE_FREE                                                  $4
   25    24      > RETURN                                                   '%D0%A3%D1%81%D0%BF%D0%B5%D1%85'
   26    25*     > 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:
152.95 ms | 1017 KiB | 16 Q