3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Intervention\Image\ImageManager; class ClientDataController extends Controller { public function index() { return view('client-data'); } public function upload_pass(Request $request) { foreach ($request->file() as $file) { $f = $file->move(storage_path('files'), time().'_'.$file->getClientOriginalName()); $manager = new ImageManager(array('driver' => 'gd')); $image = $manager->make($f)->resize(300, 200); $image->save('public/bar.jpg', 60); var_dump($f); } } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3PlB3
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'
   34     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/3PlB3
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 = 39
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 39
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/3PlB3
function name:  upload_pass
number of ops:  41
compiled vars:  !0 = $request, !1 = $file, !2 = $f, !3 = $manager, !4 = $image
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  $5      
          3      > FE_RESET_R                                       $6      $5, ->39
          4    > > FE_FETCH_R                                               $6, !1, ->39
   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  $7      
          9        SEND_VAR_NO_REF_EX                                       $7
         10        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Ctime'
         11        DO_FCALL                                      0  $8      
         12        CONCAT                                           ~9      $8, '_'
         13        INIT_METHOD_CALL                                         !1, 'getClientOriginalName'
         14        DO_FCALL                                      0  $10     
         15        CONCAT                                           ~11     ~9, $10
         16        SEND_VAL_EX                                              ~11
         17        DO_FCALL                                      0  $12     
         18        ASSIGN                                                   !2, $12
   23    19        NEW                                              $14     'Intervention%5CImage%5CImageManager'
         20        SEND_VAL_EX                                              <array>
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !3, $14
   25    23        INIT_METHOD_CALL                                         !3, 'make'
         24        SEND_VAR_EX                                              !2
         25        DO_FCALL                                      0  $17     
         26        INIT_METHOD_CALL                                         $17, 'resize'
         27        SEND_VAL_EX                                              300
         28        SEND_VAL_EX                                              200
         29        DO_FCALL                                      0  $18     
         30        ASSIGN                                                   !4, $18
   26    31        INIT_METHOD_CALL                                         !4, 'save'
         32        SEND_VAL_EX                                              'public%2Fbar.jpg'
         33        SEND_VAL_EX                                              60
         34        DO_FCALL                                      0          
   28    35        INIT_NS_FCALL_BY_NAME                                    'App%5CHttp%5CControllers%5Cvar_dump'
         36        SEND_VAR_EX                                              !2
         37        DO_FCALL                                      0          
   21    38      > JMP                                                      ->4
         39    >   FE_FREE                                                  $6
   30    40      > 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:
161.65 ms | 1013 KiB | 17 Q