3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php Route::namespace('User')->name('user.')->group( function () { Route::prefix('profile')->name('profile.')->group( function () { Route::get('/', 'ProfileController@resume')->name('index')->middleware('auth'); Route::get('/edit', "ProfileController@edit")->name('edit')->middleware('auth'); Route::post('/update', "ProfileController@update")->name('update'); }); });
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught Error: Class 'Route' not found in /in/VmsCh:3 Stack trace: #0 {main} thrown in /in/VmsCh on line 3
Process exited with code 255.
Output for 5.6.38
Parse error: syntax error, unexpected 'namespace' (T_NAMESPACE) in /in/VmsCh on line 3
Process exited with code 255.