3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace WFPKSYS\Traits; { trait SupportSystemConfiguration { protected $_supportSystemConfiguration; public function getSupportSystemConfiguration() : \WFPKSYS\SupportSystemConfiguration { return $this->_supportSystemConfiguration; } public function setSupportSystemConfiguration( \WFPKSYS\SupportSystemConfiguration $supportSystemConfiguration ) : void { $this->_supportSystemConfiguration = $supportSystemConfiguration; } } } namespace WFPKSYS; { class SupportSystemConfiguration { private $_db_Name; public function __construct( string $dbName ) {$this->setDb_Name( $dbName );} public function getDb_Name() : string { return $this->_db_Name; } public function setDb_Name( string $db_Name ) : void { $this->_db_Name = $db_Name; } } } namespace WFPKSYS\Set1; { class Foo { use \WFPKSYS\Traits\SupportSystemConfiguration; public function __construct(\WFPKSYS\SupportSystemConfiguration $supportSystemConfig) { $this->setSupportSystemConfiguration( $supportSystemConfig ); } public function displayCheck() : void { #do something that doesnt return anything } } } namespace WFPKSYS\Set3; { class Fuzz { use \WFPKSYS\Traits\SupportSystemConfiguration; public function __construct(\WFPKSYS\SupportSystemConfiguration $supportSystemConfig ) { $this->setSupportSystemConfiguration( $supportSystemConfig ); } public function performCheck() : string { $objFoo = new \WFPKSYS\Set1\Foo( $this->getSupportSystemConfiguration() ); $objFoo->displayCheck(); return "completed"; } } } $objSupportSystemConfiguration = new \WFPKSYS\SupportSystemConfiguration( "MyTestDb" ); $objFuzz = new \WFPKSYS\Set3\Fuzz( $objSupportSystemConfiguration ); echo $objFuzz->performCheck();

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.0160.00618.31
8.3.50.0140.00316.50
8.3.40.0100.01018.64
8.3.30.0090.00618.65
8.3.20.0070.00020.26
8.3.10.0090.00022.14
8.3.00.0040.00421.73
8.2.180.0070.01416.50
8.2.170.0170.00022.96
8.2.160.0130.00022.05
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00020.47
8.2.120.0000.00926.35
8.2.110.0060.00320.38
8.2.100.0000.01317.78
8.2.90.0040.00419.28
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0070.00020.41
8.2.30.0080.00021.10
8.2.20.0030.00517.92
8.2.10.0030.00717.96
8.2.00.0040.00418.05
8.1.280.0060.00925.92
8.1.270.0040.00420.27
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00020.26
8.1.230.0070.00417.70
8.1.220.0080.00017.78
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.25
8.1.180.0000.00718.10
8.1.170.0000.00818.59
8.1.160.0040.00418.85
8.1.150.0040.00420.14
8.1.140.0040.00417.59
8.1.130.0000.00718.94
8.1.120.0030.00317.48
8.1.110.0000.00817.35
8.1.100.0000.00717.48
8.1.90.0040.00417.37
8.1.80.0070.00417.36
8.1.70.0040.00417.37
8.1.60.0050.00317.55
8.1.50.0000.00717.41
8.1.40.0040.00417.53
8.1.30.0070.00017.64
8.1.20.0000.00717.48
8.1.10.0000.00817.57
8.1.00.0060.00317.50
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.37
8.0.270.0050.00217.18
8.0.260.0000.00618.44
8.0.250.0030.00516.90
8.0.240.0090.00016.91
8.0.230.0000.00716.95
8.0.220.0070.00016.96
8.0.210.0070.00316.96
8.0.200.0000.00717.01
8.0.190.0070.00016.90
8.0.180.0040.00416.96
8.0.170.0040.00417.01
8.0.160.0000.00717.01
8.0.150.0060.00316.77
8.0.140.0040.00416.84
8.0.130.0030.00313.42
8.0.120.0000.00816.96
8.0.110.0070.00016.86
8.0.100.0000.00716.82
8.0.90.0040.00416.84
8.0.80.0090.00916.93
8.0.70.0020.00517.07
8.0.60.0020.00516.77
8.0.50.0000.00716.82
8.0.30.0130.00517.32
8.0.20.0120.01217.40
8.0.10.0000.00817.14
8.0.00.0150.00316.95
7.4.330.0030.00315.55
7.4.320.0000.00616.63
7.4.300.0030.00316.48
7.4.290.0030.00516.41
7.4.280.0000.00716.54
7.4.270.0040.00416.41
7.4.260.0040.00416.52
7.4.250.0070.00016.46
7.4.240.0050.00316.43
7.4.230.0070.00016.61
7.4.220.0090.00916.40
7.4.210.0070.01416.54
7.4.200.0000.00716.44
7.4.160.0070.01216.40
7.4.150.0030.01317.40
7.4.140.0110.01217.86
7.4.130.0100.01016.61
7.4.120.0070.01216.56
7.4.110.0070.01016.53
7.4.100.0140.00316.46
7.4.90.0100.00716.47
7.4.80.0090.01219.39
7.4.70.0120.00916.59
7.4.60.0100.00716.54
7.4.50.0070.00816.44
7.4.40.0030.01316.34
7.4.30.0090.01216.52
7.4.00.0070.01015.03
7.3.330.0080.00013.12
7.3.320.0030.00313.25
7.3.310.0000.00716.28
7.3.300.0060.00016.25
7.3.290.0080.00916.24
7.3.280.0070.00916.27
7.3.270.0080.01117.40
7.3.260.0130.00516.35
7.3.250.0120.00916.34
7.3.240.0110.00716.26
7.3.230.0110.01116.30
7.3.210.0160.00316.57
7.3.200.0090.00816.56
7.3.190.0110.00816.35
7.3.180.0110.00616.42
7.3.170.0090.00616.40
7.3.160.0040.01216.39
7.2.330.0110.00816.86
7.2.320.0070.01016.74
7.2.310.0060.01216.89
7.2.300.0030.01716.65
7.2.290.0040.01316.53
7.2.110.0000.01416.55
7.2.60.0100.00017.22
7.1.200.0120.00315.80
7.1.100.0120.00817.94
7.1.90.0090.00618.10
7.1.80.0080.01217.95
7.1.70.0070.01317.06
7.1.60.0210.01734.97
7.1.50.0160.01934.71
7.1.40.0260.00934.31
7.1.30.0260.01334.60
7.1.20.0280.01034.43
7.1.10.0140.00516.51
7.1.00.0040.01216.58
7.0.240.0000.02117.54
7.0.230.0140.00317.53
7.0.220.0030.01617.64
7.0.210.0090.00916.56
7.0.200.0030.01316.82
7.0.190.0120.00716.80
7.0.180.0070.01116.20
7.0.170.0110.00716.19
7.0.160.0050.01416.21
7.0.150.0030.01716.18
7.0.140.0040.01716.26
7.0.130.0090.00916.58
7.0.120.0080.01116.57
7.0.110.0090.01216.39
7.0.100.0090.01116.30
7.0.90.0080.00816.20
7.0.80.0040.01416.40
7.0.70.0060.01216.29
7.0.60.0060.01116.16
7.0.50.0050.01116.42
7.0.40.0110.00616.34
7.0.30.0080.00816.27
7.0.20.0030.01316.22
7.0.10.0070.01016.21
7.0.00.0110.00616.25

preferences:
56.94 ms | 400 KiB | 5 Q