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> */

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.140.0140.01117.49
8.4.130.0080.00117.79
8.4.120.0050.00524.13
8.4.110.0120.00822.57
8.4.100.0070.00317.96
8.4.90.0040.00418.07
8.4.80.0100.01117.97
8.4.70.0110.00919.34
8.4.60.0130.00618.43
8.4.50.0100.01020.64
8.4.40.0060.01317.66
8.4.30.0140.00317.62
8.4.20.0030.01719.54
8.4.10.0030.00619.54
8.3.260.0110.00816.88
8.3.250.0140.00418.88
8.3.240.0100.00917.00
8.3.230.0130.00716.66
8.3.220.0100.00516.79
8.3.210.0040.00416.85
8.3.200.0050.00416.79
8.3.190.0090.00917.31
8.3.180.0100.00716.46
8.3.170.0140.00416.66
8.3.160.0050.00316.61
8.3.150.0120.00817.12
8.3.140.0080.00018.65
8.3.130.0030.00616.71
8.3.120.0070.00020.68
8.3.110.0050.00520.94
8.3.100.0000.00918.55
8.3.90.0150.00018.30
8.3.80.0060.00318.43
8.3.70.0070.00718.43
8.3.60.0130.01016.50
8.3.50.0080.00921.97
8.3.40.0110.00418.76
8.3.30.0040.01118.67
8.3.20.0080.00018.98
8.3.10.0070.00021.85
8.3.00.0080.00020.93
8.2.290.0120.00718.74
8.2.280.0060.00218.53
8.2.270.0060.01316.76
8.2.260.0110.00418.77
8.2.250.0030.00518.39
8.2.240.0120.00619.02
8.2.230.0030.00622.58
8.2.220.0050.00224.06
8.2.210.0080.00026.77
8.2.200.0090.00018.29
8.2.190.0040.01118.30
8.2.180.0040.01116.75
8.2.170.0110.00322.96
8.2.160.0090.00920.33
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00420.93
8.2.120.0000.00726.35
8.2.110.0090.00021.12
8.2.100.0120.00017.72
8.2.90.0060.00319.34
8.2.80.0050.00317.97
8.2.70.0040.00417.80
8.2.60.0080.00017.80
8.2.50.0030.00518.10
8.2.40.0040.00420.61
8.2.30.0000.00719.20
8.2.20.0040.00418.12
8.2.10.0050.00218.06
8.2.00.0040.00417.74
8.1.330.0060.00221.79
8.1.320.0090.00915.92
8.1.310.0030.00516.74
8.1.300.0030.00618.56
8.1.290.0030.00618.88
8.1.280.0100.01425.92
8.1.270.0080.00822.07
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00324.03
8.1.230.0040.00721.03
8.1.220.0000.00817.74
8.1.210.0030.00518.85
8.1.200.0030.00617.35
8.1.190.0130.00017.13
8.1.180.0040.00418.10
8.1.170.0060.00318.89
8.1.160.0020.00518.83
8.1.150.0000.00720.28
8.1.140.0040.00419.52
8.1.130.0070.00317.64
8.1.120.0050.00217.48
8.1.110.0040.00417.42
8.1.100.0040.00417.44
8.1.90.0000.00817.46
8.1.80.0000.00717.39
8.1.70.0000.00717.43
8.1.60.0050.00317.50
8.1.50.0000.00917.46
8.1.40.0040.00417.34
8.1.30.0030.00617.44
8.1.20.0040.00417.64
8.1.10.0000.00817.52
8.1.00.0080.00017.42
8.0.300.0000.00719.98
8.0.290.0040.00416.63
8.0.280.0030.00318.56
8.0.270.0030.00317.25
8.0.260.0000.00717.22
8.0.250.0090.00017.07
8.0.240.0030.00317.03
8.0.230.0000.00716.91
8.0.220.0000.00716.99
8.0.210.0030.00316.93
8.0.200.0050.00516.97
8.0.190.0040.00416.86
8.0.180.0070.00016.98
8.0.170.0040.00417.04
8.0.160.0070.00017.00
8.0.150.0050.00216.89
8.0.140.0040.00416.89
8.0.130.0030.00313.35
8.0.120.0080.00016.94
8.0.110.0040.00416.93
8.0.100.0000.00716.97
8.0.90.0040.00416.88
8.0.80.0160.00617.01
8.0.70.0030.00517.01
8.0.60.0070.00016.82
8.0.50.0050.00316.96
8.0.30.0100.00817.09
8.0.20.0110.00817.40
8.0.10.0070.00016.91
8.0.00.0150.00416.86
7.4.330.0030.00315.55
7.4.320.0070.00016.53
7.4.300.0000.00616.43
7.4.290.0030.00316.55
7.4.280.0040.00416.37
7.4.270.0000.00716.46
7.4.260.0030.00316.45
7.4.250.0000.00816.42
7.4.240.0030.00316.46
7.4.230.0050.00316.55
7.4.220.0120.00916.54
7.4.210.0120.00316.63
7.4.200.0040.00416.61
7.4.160.0050.01116.53
7.4.150.0110.00717.40
7.4.140.0090.01117.86
7.4.130.0060.01216.58
7.4.120.0110.00716.41
7.4.110.0110.00716.59
7.4.100.0030.01616.56
7.4.90.0090.00916.46
7.4.80.0090.00919.39
7.4.70.0090.00616.56
7.4.60.0100.00716.43
7.4.50.0070.00716.39
7.4.40.0080.00816.30
7.4.30.0030.01216.68
7.4.00.0070.00714.84
7.3.330.0000.00513.27
7.3.320.0000.00513.27
7.3.310.0040.00416.36
7.3.300.0070.00016.22
7.3.290.0080.00716.28
7.3.280.0090.01016.31
7.3.270.0030.01317.40
7.3.260.0090.00816.44
7.3.250.0100.00716.44
7.3.240.0080.01116.43
7.3.230.0070.01016.39
7.3.210.0070.01016.48
7.3.200.0060.01016.43
7.3.190.0130.00316.40
7.3.180.0090.00616.44
7.3.170.0130.00816.38
7.3.160.0150.00616.41
7.2.330.0120.00616.63
7.2.320.0080.00816.46
7.2.310.0100.00716.57
7.2.300.0110.00716.54
7.2.290.0150.00516.47
7.2.60.0060.00616.64
7.2.00.0150.00319.22
7.1.200.0030.01015.78
7.1.100.0000.01117.96
7.1.70.0050.00516.61
7.1.60.0000.01017.31
7.1.50.0070.00716.62
7.1.00.0070.07322.48
7.0.200.0220.00616.32
7.0.130.0000.07022.10
7.0.120.0100.05321.97
7.0.110.0070.05322.15
7.0.100.0130.04722.21
7.0.90.0100.05322.11
7.0.80.0070.05721.97
7.0.70.0000.06022.11
7.0.60.0070.05721.96
7.0.50.0000.06022.13
7.0.40.0070.05322.04
7.0.30.0000.06022.08
7.0.20.0100.05322.13
7.0.10.0130.05022.06
7.0.00.0100.05322.10
5.6.280.0070.06021.08
5.6.270.0100.05321.07
5.6.260.0030.06021.12
5.6.250.0200.04320.99
5.6.240.0000.06320.85
5.6.230.0070.05320.74
5.6.220.0000.06321.01
5.6.210.0070.05320.90
5.6.200.0070.05321.01
5.6.190.0130.05721.01
5.6.180.0070.06020.82
5.6.170.0170.04721.00
5.6.160.0030.05721.04
5.6.150.0170.04721.06
5.6.140.0000.06720.84
5.6.130.0130.05020.95
5.6.120.0100.05320.76
5.6.110.0100.05321.00
5.6.100.0030.06321.03
5.6.90.0130.04720.86
5.6.80.0130.05020.40
5.6.70.0100.05320.21
5.6.60.0100.05020.42
5.6.50.0130.04720.22
5.6.40.0070.05320.17
5.6.30.0070.05720.30
5.6.20.0130.05020.31
5.6.10.0070.05320.22
5.6.00.0070.05720.20

preferences:
168.8 ms | 403 KiB | 5 Q