3v4l.org

run code in 300+ PHP versions simultaneously
<?php Route::filter('api_key', function () { if (Input::has("api_key") == FALSE) { throw new MyAltCoins\Exceptions\Api\ApiKeyInvalidException(); } $user = User::where('apiKey', Input::get('api_key'))->first(); if (!$user) { throw new MyAltCoins\Exceptions\Api\ApiKeyInvalidException(); } Auth::login($user); });

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.3.60.0130.00318.18
8.3.50.0060.01121.99
8.3.40.0140.00018.96
8.3.30.0070.00719.13
8.3.20.0070.00020.46
8.3.10.0080.00021.95
8.3.00.0080.00022.43
8.2.180.0070.00716.38
8.2.170.0140.00022.96
8.2.160.0110.00320.81
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00617.38
8.2.110.0030.00622.13
8.2.100.0040.00817.72
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0050.00317.92
8.2.50.0000.00818.07
8.2.40.0040.00418.28
8.2.30.0030.00618.07
8.2.20.0070.00017.63
8.2.10.0080.00017.72
8.2.00.0000.00817.67
8.1.280.0120.00625.92
8.1.270.0040.00423.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.87
8.1.230.0120.00019.01
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0030.00618.60
8.1.160.0080.00021.96
8.1.150.0040.00418.48
8.1.140.0080.00017.44
8.1.130.0040.00417.75
8.1.120.0070.00017.35
8.1.110.0070.00017.34
8.1.100.0030.00517.35
8.1.90.0040.00417.21
8.1.80.0000.00717.21
8.1.70.0000.00817.20
8.1.60.0030.00617.53
8.1.50.0000.00717.35
8.1.40.0080.00017.46
8.1.30.0030.00517.62
8.1.20.0050.00317.59
8.1.10.0050.00317.51
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0070.00017.18
8.0.280.0030.00318.31
8.0.270.0040.00417.20
8.0.260.0000.00616.82
8.0.250.0000.00716.95
8.0.240.0030.00316.95
8.0.230.0040.00416.90
8.0.220.0030.00316.95
8.0.210.0000.00816.82
8.0.200.0030.00316.95
8.0.190.0060.00316.94
8.0.180.0090.00016.98
8.0.170.0050.00216.80
8.0.160.0040.00416.81
8.0.150.0000.00716.96
8.0.140.0000.00716.74
8.0.130.0050.00013.26
8.0.120.0000.00716.89
8.0.110.0000.00716.93
8.0.100.0000.00716.75
8.0.90.0030.00316.77
8.0.80.0110.00716.83
8.0.70.0040.00416.73
8.0.60.0040.00416.94
8.0.50.0040.00416.71
8.0.30.0140.00817.16
8.0.20.0050.01517.40
8.0.10.0040.00416.94
8.0.00.0140.00716.63
7.4.330.0050.00015.05
7.4.320.0000.00616.38
7.4.300.0030.00316.52
7.4.290.0070.00016.52
7.4.280.0070.00016.33
7.4.270.0070.00016.40
7.4.260.0050.00316.57
7.4.250.0050.00316.52
7.4.240.0020.00616.44
7.4.230.0060.00016.52
7.4.220.0070.01016.57
7.4.210.0090.00716.47
7.4.200.0040.00416.55
7.4.190.0020.00516.32
7.4.160.0130.00316.66
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0120.00716.36
7.4.120.0090.00816.34
7.4.110.0060.01216.70
7.4.100.0100.00716.47
7.4.90.0130.00616.56
7.4.80.0110.00719.39
7.4.70.0120.00316.58
7.4.60.0070.01016.45
7.4.50.0000.00616.45
7.4.40.0000.01622.77
7.4.30.0150.00016.56
7.4.00.0040.00814.75
7.3.330.0000.00513.37
7.3.320.0000.00513.37
7.3.310.0020.00516.07
7.3.300.0030.00316.25
7.3.290.0080.00616.28
7.3.280.0090.00916.29
7.3.270.0070.01417.40
7.3.260.0100.00716.55
7.3.250.0080.01116.34
7.3.240.0030.01216.58
7.3.230.0080.00816.39
7.3.210.0110.00716.23
7.3.200.0100.01319.39
7.3.190.0220.00016.44
7.3.180.0040.01216.49
7.3.170.0030.01316.38
7.3.160.0030.01416.45
7.3.120.0100.00614.81
7.3.10.0060.00616.40
7.3.00.0070.01016.29
7.2.330.0120.00616.47
7.2.320.0070.01016.54
7.2.310.0000.01716.46
7.2.300.0100.00716.62
7.2.290.0030.01316.52
7.2.130.0030.00916.71
7.2.120.0030.01316.84
7.2.110.0060.00616.81
7.2.100.0000.01416.63
7.2.90.0040.00816.93
7.2.80.0060.00316.78
7.2.70.0070.00316.60
7.2.60.0080.00816.70
7.2.50.0000.01216.86
7.2.40.0040.01116.52
7.2.30.0080.00816.68
7.2.20.0040.00916.73
7.2.10.0030.01416.79
7.2.00.0050.00718.11
7.1.250.0110.00315.46
7.1.200.0070.00715.68
7.1.100.0030.00918.03
7.1.70.0050.00217.19
7.1.60.0040.01519.82
7.1.50.0100.01016.96
7.1.00.0030.07322.54
7.0.200.3160.00314.55
7.0.140.0070.07021.95
7.0.60.0100.04319.95
7.0.50.0000.04317.90
7.0.40.0070.06019.96
7.0.30.0500.06720.21
7.0.20.0330.07320.22
7.0.10.0130.04320.25
7.0.00.0070.04320.09
5.6.280.0100.06721.16
5.6.210.0070.07320.75
5.6.200.0030.08318.15
5.6.190.0000.04720.48
5.6.180.0230.08020.34
5.6.170.0270.03020.52
5.6.160.0130.05320.44
5.6.150.0070.09018.18
5.6.140.0070.03718.28
5.6.130.0100.03318.18
5.6.120.0130.08021.02
5.6.110.0070.04721.01
5.6.100.0030.04021.02
5.6.90.0130.07720.88
5.6.80.0000.07020.44
5.5.350.0070.03320.39
5.5.340.0070.07317.96
5.5.330.0100.05720.31
5.5.320.0270.07720.52
5.5.310.0400.03720.28
5.5.300.0070.08318.09
5.5.290.0030.04017.97
5.5.280.0070.04720.78
5.5.270.0000.04320.89
5.5.260.0100.06320.87
5.5.250.0100.07720.59
5.5.240.0170.08020.24
5.4.450.0800.02719.51
5.4.440.0430.04319.47
5.4.430.0770.03719.27
5.4.420.0370.04019.16
5.4.410.0130.05719.08
5.4.400.0100.05318.50
5.4.390.0070.06018.70
5.4.380.0170.05318.76
5.4.370.0070.06018.75
5.4.360.0270.04018.70
5.4.350.0130.05318.75
5.4.340.0100.05718.80
5.4.320.0050.04612.50
5.4.310.0050.04312.50
5.4.300.0110.03112.50
5.4.290.0040.04012.50
5.4.280.0070.03412.36
5.4.270.0060.03812.37
5.4.260.0060.04012.36
5.4.250.0090.05412.36
5.4.240.0050.06112.37
5.4.230.0070.05612.36
5.4.220.0080.05812.36
5.4.210.0140.06612.36
5.4.200.0090.05512.36
5.4.190.0140.04912.36
5.4.180.0110.05312.35
5.4.170.0080.05212.37
5.4.160.0090.04512.36
5.4.150.0060.04912.36
5.4.140.0090.05012.04
5.4.130.0090.04612.04
5.4.120.0060.05011.99
5.4.110.0080.04711.98
5.4.100.0060.04911.99
5.4.90.0060.05311.98
5.4.80.0070.05011.98
5.4.70.0050.05011.98
5.4.60.0100.04311.98
5.4.50.0070.04711.98
5.4.40.0100.05511.97
5.4.30.0070.03311.96
5.4.20.0040.03711.97
5.4.10.0050.03611.97
5.4.00.0030.03811.45
5.3.290.0050.04712.80
5.3.280.0020.04212.71
5.3.270.0060.03912.73
5.3.260.0050.04012.72
5.3.250.0050.03912.72
5.3.240.0030.04412.72
5.3.230.0060.03912.71
5.3.220.0030.04812.68
5.3.210.0070.03912.68
5.3.200.0070.03712.68
5.3.190.0060.03812.67
5.3.180.0040.03912.67
5.3.170.0060.03512.67
5.3.160.0030.03812.67
5.3.150.0120.04012.68
5.3.140.0080.04712.66
5.3.130.0060.04412.66
5.3.120.0070.05112.66
5.3.110.0110.04712.66
5.3.100.0120.04512.12
5.3.90.0130.04412.08
5.3.80.0080.04612.07
5.3.70.0080.04712.07
5.3.60.0050.04612.06
5.3.50.0110.04012.00
5.3.40.0070.03912.00
5.3.30.0090.03211.95
5.3.20.0080.03811.73
5.3.10.0090.03811.70
5.3.00.0050.04011.70
5.2.170.0030.0419.15
5.2.160.0040.0349.15
5.2.150.0080.0369.15
5.2.140.0050.0349.15
5.2.130.0150.0259.11
5.2.120.0160.0279.11
5.2.110.0070.0369.12
5.2.100.0080.0369.12
5.2.90.0060.0399.11
5.2.80.0070.0379.11
5.2.70.0170.0309.11
5.2.60.0040.0429.05
5.2.50.0060.0289.03
5.2.40.0020.0319.01
5.2.30.0070.0278.98
5.2.20.0040.0308.98
5.2.10.0040.0288.90
5.2.00.0050.0288.77
5.1.60.0050.0248.04
5.1.50.0040.0268.04
5.1.40.0030.0268.02
5.1.30.0070.0298.37
5.1.20.0050.0378.39
5.1.10.0050.0358.12
5.1.00.0090.0328.12
5.0.50.0060.0256.60
5.0.40.0060.0246.46
5.0.30.0050.0396.27
5.0.20.0060.0236.25
5.0.10.0040.0266.22
5.0.00.0030.0366.21
4.4.90.0030.0154.78
4.4.80.0060.0114.75
4.4.70.0030.0154.75
4.4.60.0040.0154.76
4.4.50.0020.0214.77
4.4.40.0090.0274.71
4.4.30.0020.0184.76
4.4.20.0030.0184.84
4.4.10.0020.0224.85
4.4.00.0040.0304.76
4.3.110.0060.0184.67
4.3.100.0050.0194.66
4.3.90.0040.0194.64
4.3.80.0020.0314.58
4.3.70.0060.0184.63
4.3.60.0060.0184.63
4.3.50.0030.0234.63
4.3.40.0050.0304.54
4.3.30.0030.0213.27
4.3.20.0020.0193.25
4.3.10.0010.0223.21
4.3.00.0030.01715.11

preferences:
39.79 ms | 401 KiB | 5 Q