3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller_Promise extends Controller_Template { public function init() { //Error: turns false after second page refresh if (\Auth::check()) { return Model_User::find_by_email(Auth::get_email()); } } } class Controller_Home extends Controller_Promise { public function action_index() { $this->template->user = parent::init(); } public function action_404() { return Response::forge(Presenter::forge('home/404'), 404); } } class Controller_Auth extends Controller_Promise { public function action_login() { if (Input::is_ajax()) { //Error: validates without any sort of CSRF enable if (Security::check_token(Input::post('__token'))) { //validate and login } } else { Response::redirect('404'); } } } /* <script> $(document).ready(function(e) { $('.form').on('submit', (function(e){ e.preventDefault(); var formData = new FormData(this); formData.append('__token', fuel_csrf_token()); $.ajax ({ url: $(this).data('uri'), data:formData, cache:false, processData:false, dataType:'json', contentType:false, type:'post', success: function(result) { .... } }); })); }); </script> */
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Controller_Template" not found in /in/LOOYn:2 Stack trace: #0 {main} thrown in /in/LOOYn on line 2
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.19 ms | 405 KiB | 5 Q