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) { var_dump($file); } } } Получаю вот это в консоле: object(Illuminate\Http\UploadedFile)#248 (7) { ["test":"Symfony\Component\HttpFoundation\File\UploadedFile":private]=> bool(false) ["originalName":"Symfony\Component\HttpFoundation\File\UploadedFile":private]=> string(9) "44444.jpg" ["mimeType":"Symfony\Component\HttpFoundation\File\UploadedFile":private]=> string(10) "image/jpeg" ["error":"Symfony\Component\HttpFoundation\File\UploadedFile":private]=> int(0) ["hashName":protected]=> NULL ["pathName":"SplFileInfo":private]=> string(14) "/tmp/phpthbw4c" ["fileName":"SplFileInfo":private]=> string(9) "phpthbw4c" }
Output for 8.0.0 - 8.0.29, 8.1.0 - 8.1.20, 8.2.0 - 8.2.7
Parse error: syntax error, unexpected identifier "вот" in /in/Mm8sM on line 30
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Parse error: syntax error, unexpected 'вот' (T_STRING) in /in/Mm8sM on line 30
Process exited with code 255.

preferences:
163.47 ms | 997 KiB | 7 Q