3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @since 3.0.0 * @license http://www.opensource.org/licenses/mit-license.php MIT License */ /** * Cell base. * */ class Cell { /** * Instance of the View created during rendering. Won't be set until after * Cell::__toString() is called. * * @var \Cake\View\View */ public $View; /** * Name of the action that was invoked. * * Action name will be inflected to get the template name when rendering. * * @var string */ public $action; /** * Rendering method. * * @param string $action Custom template name to render. If not provided (null), the last * value will be used. This value is automatically set by `CellTrait::cell()`. * @return void */ public function render($action = null) { if ($action !== null) { $this->action = $action; } return $this->__toString(); } /** * Magic method. * * Starts the rendering process when Cell is echoed. * * @return string Rendered cell */ public function __toString() { return $this->bla('action'); } public function bla($action) { throw new Exception('Not allowed'); } } $cell = new Cell();

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.0170.00316.75
8.3.50.0190.00722.12
8.3.40.0030.01318.59
8.3.30.0060.00818.92
8.3.20.0070.00020.25
8.3.10.0040.00423.61
8.3.00.0040.00420.77
8.2.180.0090.00616.37
8.2.170.0110.00422.96
8.2.160.0110.00420.30
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.30
8.2.110.0090.00022.21
8.2.100.0040.00720.57
8.2.90.0090.00017.63
8.2.80.0050.00318.04
8.2.70.0080.00017.80
8.2.60.0080.00017.92
8.2.50.0080.00018.10
8.2.40.0000.00818.22
8.2.30.0040.00418.20
8.2.20.0020.00517.79
8.2.10.0040.00417.82
8.2.00.0040.00417.61
8.1.280.0130.00725.92
8.1.270.0000.00823.83
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00024.02
8.1.230.0090.00319.14
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0040.00422.03
8.1.150.0040.00418.67
8.1.140.0080.00017.45
8.1.130.0000.00817.79
8.1.120.0030.00317.52
8.1.110.0000.00717.43
8.1.100.0000.00817.38
8.1.90.0000.00817.49
8.1.80.0070.00017.39
8.1.70.0050.00217.38
8.1.60.0040.00417.50
8.1.50.0040.00417.59
8.1.40.0080.00017.45
8.1.30.0040.00417.53
8.1.20.0040.00417.57
8.1.10.0000.00717.54
8.1.00.0000.00817.37
8.0.300.0050.00519.52
8.0.290.0030.00516.75
8.0.280.0000.00718.48
8.0.270.0040.00417.29
8.0.260.0040.00416.77
8.0.250.0030.00316.83
8.0.240.0000.00716.99
8.0.230.0000.00817.01
8.0.220.0000.00816.92
8.0.210.0080.00016.94
8.0.200.0000.00617.01
8.0.190.0000.00817.03
8.0.180.0040.00416.91
8.0.170.0000.00916.97
8.0.160.0000.00716.80
8.0.150.0070.00016.97
8.0.140.0040.00416.94
8.0.130.0030.00313.37
8.0.120.0000.00816.79
8.0.110.0040.00416.96
8.0.100.0000.00816.91
8.0.90.0000.00816.90
8.0.80.0090.00816.89
8.0.70.0000.00816.97
8.0.60.0040.00416.93
8.0.50.0040.00416.91
8.0.30.0110.00817.15
8.0.20.0130.00517.40
8.0.10.0040.00416.84
8.0.00.0030.01516.79
7.4.330.0000.00515.00
7.4.320.0060.00016.58
7.4.300.0060.00016.59
7.4.290.0030.00316.40
7.4.280.0000.00716.61
7.4.270.0030.00316.57
7.4.260.0070.00016.52
7.4.250.0040.00416.34
7.4.240.0050.00216.55
7.4.230.0030.00316.27
7.4.220.0090.01116.45
7.4.210.0020.01216.54
7.4.200.0030.00316.38
7.4.190.0050.00216.71
7.4.160.0130.00716.64
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0090.00716.44
7.4.120.0070.01116.42
7.4.110.0040.01516.47
7.4.100.0120.00816.50
7.4.90.0030.01316.42
7.4.80.0070.01016.46
7.4.70.0030.01216.43
7.4.60.0030.01316.34
7.4.50.0040.00316.64
7.4.40.0000.01622.77
7.4.30.0170.00016.45
7.4.10.0110.00814.85
7.4.00.0060.00615.06
7.3.330.0050.00013.14
7.3.320.0070.00013.07
7.3.310.0030.00316.18
7.3.300.0030.00316.05
7.3.290.0110.00416.15
7.3.280.0130.00816.18
7.3.270.0090.01217.40
7.3.260.0160.00616.22
7.3.250.0130.01116.38
7.3.240.0180.00316.26
7.3.230.0090.01216.39
7.3.210.0100.01316.31
7.3.200.0080.01119.39
7.3.190.0100.01316.13
7.3.180.0110.00516.21
7.3.170.0070.01016.30
7.3.160.0130.00316.36
7.3.130.0090.00914.34
7.3.120.0070.01014.72
7.3.110.0110.00714.60
7.3.100.0090.00614.91
7.3.90.0000.01514.40
7.3.80.0090.00014.41
7.3.70.0030.00914.68
7.3.60.0030.01014.59
7.3.50.0000.00914.79
7.3.40.0040.00714.58
7.3.30.0070.00714.73
7.3.20.0090.00416.64
7.3.10.0030.00916.57
7.3.00.0090.00016.33
7.2.330.0110.00716.59
7.2.320.0100.00616.37
7.2.310.0100.00716.61
7.2.300.0030.01216.45
7.2.290.0060.01016.39
7.2.260.0000.01314.90
7.2.250.0070.01015.11
7.2.240.0080.00414.98
7.2.230.0070.01114.77
7.2.220.0070.01115.07
7.2.210.0070.00714.55
7.2.200.0030.01414.58
7.2.190.0040.00715.05
7.2.180.0030.01015.00
7.2.170.0070.00715.02
7.2.160.0040.00714.68
7.2.150.0080.00416.81
7.2.140.0000.01516.74
7.2.130.0030.01016.57
7.2.120.0040.01216.73
7.2.110.0140.00316.73
7.2.100.0090.00916.54
7.2.90.0040.00717.00
7.2.80.0040.01116.81
7.2.70.0070.00716.96
7.2.60.0000.01516.65
7.2.50.0060.00916.53
7.2.40.0060.00316.77
7.2.30.0030.01416.86
7.2.20.0030.01216.87
7.2.10.0030.01416.45
7.2.00.0060.00917.86
7.1.330.0070.00315.63
7.1.320.0040.01115.71
7.1.310.0000.01315.69
7.1.300.0030.01315.48
7.1.290.0060.00615.60
7.1.280.0090.00615.63
7.1.270.0060.00615.51
7.1.260.0000.00815.65
7.1.250.0080.00415.41
7.1.240.0080.00815.52
7.1.230.0110.00315.61
7.1.220.0030.00715.69
7.1.210.0000.00915.63
7.1.200.0080.00415.50
7.1.190.0100.00615.43
7.1.180.0070.00715.38
7.1.170.0040.00415.29
7.1.160.0060.00315.66
7.1.150.0000.01415.53
7.1.140.0030.01015.56
7.1.130.0100.00715.40
7.1.120.0030.01015.73
7.1.110.0030.01215.48
7.1.100.0020.01216.98
7.1.90.0000.01515.79
7.1.80.0040.01215.74
7.1.70.0070.00516.32
7.1.60.0080.01017.38
7.1.50.0120.00825.08
7.1.40.0050.00515.49
7.1.30.0100.00715.56
7.1.20.0030.01415.59
7.1.10.0040.01215.67
7.1.00.0050.04019.06
7.0.330.0060.00615.25
7.0.320.0070.00715.21
7.0.310.0030.00615.45
7.0.300.0030.01015.14
7.0.290.0030.00915.33
7.0.280.0030.00915.50
7.0.270.0040.00715.18
7.0.260.0030.01215.40
7.0.250.0030.00815.34
7.0.240.0040.00815.42
7.0.230.0040.00415.36
7.0.220.0080.00815.23
7.0.210.0060.00315.39
7.0.200.0030.00516.10
7.0.190.0080.00015.33
7.0.180.0090.00614.96
7.0.170.0040.01115.30
7.0.160.0100.00715.08
7.0.150.0060.00615.17
7.0.140.0030.04018.47
7.0.130.0120.00615.45
7.0.120.0030.01215.48
7.0.110.0070.03517.62
7.0.100.0060.02117.50
7.0.90.0050.04717.61
7.0.80.0070.02717.62
7.0.70.0080.02817.63
7.0.60.0110.03817.60
7.0.50.0030.03017.57
7.0.40.0050.04716.53
7.0.30.0060.02416.55
7.0.20.0080.04116.51
7.0.10.0080.04216.63
7.0.00.0030.02916.51
5.6.400.0000.00914.11
5.6.390.0000.01114.20
5.6.380.0060.00914.59
5.6.370.0030.00613.95
5.6.360.0060.00614.15
5.6.350.0060.00614.57
5.6.340.0000.01114.42
5.6.330.0070.00714.41
5.6.320.0030.00614.52
5.6.310.0060.00614.61
5.6.300.0100.00314.42
5.6.290.0040.00814.25
5.6.280.0040.04117.75
5.6.270.0060.01214.31
5.6.260.0050.02817.38
5.6.250.0040.04117.42
5.6.240.0070.04217.34
5.6.230.0050.03617.29
5.6.220.0050.02617.48
5.6.210.0050.03117.45
5.6.200.0050.04117.41
5.6.190.0050.04917.35
5.6.180.0040.03617.39
5.6.170.0050.04517.39
5.6.160.0030.05117.46
5.6.150.0030.03117.41
5.6.140.0070.04417.66
5.6.130.0130.03517.44
5.6.120.0100.03717.55
5.6.110.0070.04217.40
5.6.100.0050.02217.41
5.6.90.0030.02817.31
5.6.80.0060.02417.05
5.6.70.0080.03317.01
5.6.60.0020.02716.97
5.6.50.0070.04317.01
5.6.40.0100.04017.07
5.6.30.0050.03817.03
5.6.20.0070.03417.09
5.6.10.0110.03617.13
5.6.00.0040.04217.15
5.5.380.0080.04015.86
5.5.370.0050.04415.87
5.5.360.0080.02115.96
5.5.350.0030.02515.87
5.5.340.0090.02516.02
5.5.330.0030.03016.08
5.5.320.0110.04116.03
5.5.310.0020.03816.04
5.5.300.0070.03416.13
5.5.290.0030.04016.06
5.5.280.0070.02816.37
5.5.270.0020.03016.21
5.5.260.0070.02016.03
5.5.250.0070.04415.97
5.5.240.0070.04015.85
5.5.230.0030.04515.75
5.5.220.0080.03715.88
5.5.210.0090.02415.79
5.5.200.0090.02915.89
5.5.190.0080.03915.71
5.5.180.0040.03115.89
5.5.170.0150.00013.99
5.5.160.0040.02315.63
5.5.150.0030.04315.56
5.5.140.0070.02815.49
5.5.130.0050.02515.78
5.5.120.0030.04115.76
5.5.110.0030.02615.83
5.5.100.0070.02915.63
5.5.90.0060.02515.85
5.5.80.0000.03015.64
5.5.70.0060.04115.83
5.5.60.0020.04415.71
5.5.50.0070.04015.70
5.5.40.0060.02315.72
5.5.30.0030.03115.64
5.5.20.0080.03015.59
5.5.10.0050.04015.52
5.5.00.0080.04215.78
5.4.450.0050.02815.58
5.4.440.0060.03115.58
5.4.430.0120.03515.73
5.4.420.0030.03715.73
5.4.410.0060.02715.50
5.4.400.0080.03715.58
5.4.390.0090.03915.39
5.4.380.0090.03715.58
5.4.370.0050.04215.50
5.4.360.0070.02815.52
5.4.350.0080.03515.53
5.4.340.0080.02215.52
5.4.330.0030.00711.82
5.4.320.0050.02515.51
5.4.310.0050.02215.43
5.4.300.0080.03615.48
5.4.290.0080.01815.46
5.4.280.0070.03815.46
5.4.270.0070.03715.42
5.4.260.0130.03015.44
5.4.250.0060.03815.52
5.4.240.0040.03915.41
5.4.230.0030.02815.58
5.4.220.0070.02615.42
5.4.210.0080.03615.40
5.4.200.0030.04215.42
5.4.190.0030.02315.50
5.4.180.0070.04115.56
5.4.170.0060.03615.53
5.4.160.0050.03815.39
5.4.150.0100.02015.48
5.4.140.0070.04014.07
5.4.130.0050.03814.10
5.4.120.0070.03914.08
5.4.110.0070.04014.15
5.4.100.0080.03814.18
5.4.90.0050.02214.09
5.4.80.0090.03414.06
5.4.70.0020.04314.17
5.4.60.0030.02614.19
5.4.50.0070.02014.10
5.4.40.0080.02114.21
5.4.30.0030.04214.15
5.4.20.0010.03614.13
5.4.10.0030.02314.18
5.4.00.0100.01313.81
5.3.290.0040.02813.23
5.3.280.0030.02313.26
5.3.270.0050.04013.34
5.3.260.0050.03813.26
5.3.250.0000.02913.24
5.3.240.0020.03213.20
5.3.230.0050.02713.21
5.3.220.0050.04713.24
5.3.210.0090.04013.28
5.3.200.0050.03913.24
5.3.190.0030.02613.20
5.3.180.0030.03813.31
5.3.170.0060.02313.20
5.3.160.0030.02413.27
5.3.150.0050.03213.18
5.3.140.0000.02513.26
5.3.130.0030.03013.20
5.3.120.0050.04013.23
5.3.110.0050.02213.12
5.3.100.0050.02013.05
5.3.90.0070.03412.92
5.3.80.0040.03012.95
5.3.70.0050.02612.92
5.3.60.0020.04012.96
5.3.50.0040.02712.88
5.3.40.0020.03512.89
5.3.30.0030.02512.98
5.3.20.0070.01812.78
5.3.10.0030.03612.76
5.3.00.0080.02512.80
5.2.170.0030.05711.97
5.2.160.0100.02011.97
5.2.150.0030.03011.97
5.2.140.0070.05011.97
5.2.130.0030.02711.97
5.2.120.0070.02311.97
5.2.110.0030.05711.97
5.2.100.0070.05311.97
5.2.90.0100.03011.97
5.2.80.0030.02711.97
5.2.70.0000.03311.97
5.2.60.0030.04311.97
5.2.50.0000.05011.97
5.2.40.0030.02711.97
5.2.30.0070.04011.97
5.2.20.0000.06011.97
5.2.10.0070.04711.97
5.2.00.0030.06011.97
5.1.60.0070.03011.97
5.1.50.0100.05011.97
5.1.40.0070.04311.97
5.1.30.0070.05711.97
5.1.20.0030.04011.97
5.1.10.0000.04711.97
5.1.00.0030.03711.97
5.0.50.0000.05011.97
5.0.40.0030.02311.97
5.0.30.0030.04011.97
5.0.20.0030.04311.97
5.0.10.0030.02711.97
5.0.00.0100.05711.97
4.4.90.0000.01311.97
4.4.80.0000.03311.97
4.4.70.0070.02011.97
4.4.60.0030.03311.97
4.4.50.0030.03011.97
4.4.40.0030.05711.97
4.4.30.0000.04011.97
4.4.20.0100.02711.97
4.4.10.0070.02711.97
4.4.00.0030.04711.97
4.3.110.0000.03711.97
4.3.100.0030.02711.97
4.3.90.0000.03011.97
4.3.80.0030.05011.97
4.3.70.0000.02011.97
4.3.60.0000.03311.97
4.3.50.0030.03011.97
4.3.40.0000.03011.97
4.3.30.0070.03011.97
4.3.20.0000.03311.97
4.3.10.0000.03311.97
4.3.00.0000.02311.97

preferences:
51.29 ms | 401 KiB | 5 Q