3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace WFPKSYS\System\Traits\Configuration; { trait SupportSystemConfiguration { protected $_supportSystemConfiguration; public function getSupportSystemConfiguration() : \WFPKSYS\SupportSystem\Models\Configuration\SupportSystemConfiguration { return $this->_supportSystemConfiguration; } public function setSupportSystemConfiguration( \WFPKSYS\SupportSystem\Models\Configuration\SupportSystemConfiguration $supportSystemConfiguration ) : void { $this->_supportSystemConfiguration = $supportSystemConfiguration; } } } namespace WFPKSYS\SupportSystem\Models\Configuration; { class SupportSystemConfiguration { private $_db_Name; public function __construct() {$this->setDb_Name( "MyTestDb" );} public function getDb_Name() : string { return $this->_db_Name; } public function setDb_Name( string $db_Name ) : void { $this->_db_Name = $db_Name; } } } namespace WFPKSYS\SupportSystem\Models; { class Foo { use \WFPKSYS\System\Traits\Configuration\SupportSystemConfiguration; public function __construct(\WFPKSYS\SupportSystem\Models\Configuration\SupportSystemConfiguration $supportSystemConfig) { $this->setSupportSystemConfiguration( $supportSystemConfig ); } public function displayCheck() : void { #do something that doesnt return anything } } } namespace WFPKSYS\SupportSystem\Models; { class Bar { use \WFPKSYS\System\Traits\Configuration\SupportSystemConfiguration; public function __construct(\WFPKSYS\SupportSystem\Models\Configuration\SupportSystemConfiguration $supportSystemConfig) {$this->setSupportSystemConfiguration( $supportSystemConfig );} public function displayCheck() : void { #do something that doesnt return anything } } } namespace WFPKSYS\SupportSystem\Models; { class Fuzz { use \WFPKSYS\System\Traits\Configuration\SupportSystemConfiguration; public function __construct(\WFPKSYS\SupportSystem\Models\Configuration\SupportSystemConfiguration $supportSystemConfig ) { $this->setSupportSystemConfiguration( $supportSystemConfig ); } public function performCheck() : string { $objFoo = new \WFPKSYS\SupportSystem\Models\Foo( $this->getSupportSystemConfiguration() ); $objBar = new \WFPKSYS\SupportSystem\Models\Bar( $this->getSupportSystemConfiguration() ); $objFoo->displayCheck(); $objBar->displayCheck(); return "completed"; } } } $objSupportSystemConfiguration = new \WFPKSYS\SupportSystem\Models\Configuration\SupportSystemConfiguration(); $objFuzz = new \WFPKSYS\SupportSystem\Models\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.0100.01318.30
8.3.50.0160.00316.65
8.3.40.0110.00718.89
8.3.30.0090.00618.67
8.3.20.0050.00320.25
8.3.10.0060.00321.93
8.3.00.0000.00821.76
8.2.180.0190.00316.88
8.2.170.0110.00722.96
8.2.160.0130.00720.28
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.14
8.2.120.0040.00426.16
8.2.110.0030.00620.94
8.2.100.0040.00817.84
8.2.90.0080.00019.10
8.2.80.0080.00317.97
8.2.70.0090.00017.75
8.2.60.0060.00318.05
8.2.50.0000.00818.10
8.2.40.0040.00420.60
8.2.30.0080.00021.03
8.2.20.0080.00018.14
8.2.10.0040.00417.97
8.2.00.0050.00317.96
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0140.00322.14
8.1.230.0080.00319.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0000.00817.36
8.1.180.0060.00318.10
8.1.170.0090.00018.50
8.1.160.0070.00018.83
8.1.150.0050.00220.28
8.1.140.0030.00517.78
8.1.130.0050.00219.15
8.1.120.0040.00417.50
8.1.110.0000.00817.48
8.1.100.0080.00017.49
8.1.90.0040.00417.50
8.1.80.0000.01117.51
8.1.70.0030.00617.39
8.1.60.0050.00317.57
8.1.50.0000.00717.55
8.1.40.0030.00617.50
8.1.30.0040.00417.70
8.1.20.0000.00917.61
8.1.10.0000.00817.61
8.1.00.0040.00417.59
8.0.300.0000.00818.77
8.0.290.0060.00316.88
8.0.280.0030.00318.37
8.0.270.0040.00417.29
8.0.260.0000.00616.89
8.0.250.0000.00816.97
8.0.240.0060.00317.03
8.0.230.0000.00617.11
8.0.220.0070.00016.86
8.0.210.0000.00716.87
8.0.200.0000.00616.92
8.0.190.0040.00417.09
8.0.180.0080.00017.06
8.0.170.0000.00717.04
8.0.160.0000.00717.01
8.0.150.0070.00416.91
8.0.140.0030.00516.93
8.0.130.0030.00313.38
8.0.120.0000.00716.96
8.0.110.0000.00716.93
8.0.100.0000.00716.86
8.0.90.0000.00716.99
8.0.80.0100.01016.98
8.0.70.0000.00816.88
8.0.60.0000.00917.05
8.0.50.0070.00016.98
8.0.30.0110.00817.18
8.0.20.0110.00917.40
8.0.10.0040.00417.18
8.0.00.0070.01616.66
7.4.330.0000.00415.55
7.4.320.0000.00616.44
7.4.300.0060.00016.53
7.4.290.0030.00316.64
7.4.280.0000.00716.65
7.4.270.0030.00316.67
7.4.260.0000.00716.42
7.4.250.0040.00416.50
7.4.240.0000.00816.65
7.4.230.0000.00716.57
7.4.220.0100.01016.66
7.4.210.0030.01216.52
7.4.200.0050.00216.38
7.4.160.0060.01016.49
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0070.01116.46
7.4.120.0110.00916.58
7.4.110.0070.01116.67
7.4.100.0120.00616.48
7.4.90.0030.01316.51
7.4.80.0130.00619.39
7.4.70.0130.00916.52
7.4.60.0150.00716.45
7.4.50.0000.01716.56
7.4.40.0160.00316.47
7.4.30.0040.01216.55
7.4.10.0100.01014.85
7.4.00.0060.01014.96
7.3.330.0040.00413.28
7.3.320.0000.00513.05
7.3.310.0000.00716.16
7.3.300.0040.00416.13
7.3.290.0070.00816.24
7.3.280.0070.01016.25
7.3.270.0060.01217.40
7.3.260.0090.01116.40
7.3.250.0100.00816.25
7.3.240.0090.00816.30
7.3.230.0040.01316.51
7.3.210.0060.01216.35
7.3.200.0140.00616.13
7.3.190.0130.00316.25
7.3.180.0040.01116.47
7.3.170.0090.00616.45
7.3.160.0150.00016.24
7.3.130.0040.01114.61
7.3.120.0050.01114.79
7.3.110.0100.00714.80
7.3.100.0060.00814.64
7.3.90.0090.00614.86
7.3.80.0080.00514.66
7.3.70.0050.00714.66
7.3.60.0080.01014.77
7.3.50.0090.00714.71
7.3.40.0030.01214.66
7.3.30.0060.01014.71
7.3.20.0070.00716.64
7.3.10.0100.00316.47
7.3.00.0080.00516.61
7.2.330.0100.00916.84
7.2.320.0060.01016.75
7.2.310.0160.00616.65
7.2.300.0100.01016.44
7.2.290.0070.00816.69
7.2.260.0060.01315.28
7.2.250.0060.01315.11
7.2.240.0110.00614.91
7.2.230.0080.00915.11
7.2.220.0030.01215.09
7.2.210.0070.00214.84
7.2.200.0050.01014.89
7.2.190.0100.00615.15
7.2.180.0040.00915.10
7.2.170.0060.00614.98
7.2.160.0070.00715.27
7.2.150.0060.00917.10
7.2.140.0150.00016.83
7.2.130.0090.00917.12
7.2.120.0040.00816.87
7.2.110.0090.00516.70
7.2.100.0030.00916.84
7.2.90.0070.00317.12
7.2.80.0000.01516.68
7.2.70.0040.00816.81
7.2.60.0020.01216.75
7.2.50.0030.00716.92
7.2.40.0030.01616.98
7.2.30.0070.00716.83
7.2.20.0040.01116.80
7.2.10.0000.01817.14
7.2.00.0080.00816.77
7.1.330.0030.01315.66
7.1.320.0070.00715.61
7.1.310.0070.00715.65
7.1.300.0080.00515.80
7.1.290.0100.00415.93
7.1.280.0050.00815.59
7.1.270.0050.00815.77
7.1.260.0070.00515.66
7.1.250.0070.01015.85
7.1.240.0000.01115.80
7.1.230.0000.01115.88
7.1.220.0000.01015.70
7.1.210.0070.01015.62
7.1.200.0090.00615.76
7.1.190.0030.00515.82
7.1.180.0070.00415.38
7.1.170.0090.00615.83
7.1.160.0060.00615.88
7.1.150.0060.00615.75
7.1.140.0040.00715.71
7.1.130.0070.00715.62
7.1.120.0030.01215.77
7.1.110.0080.00815.63
7.1.100.0100.00516.97
7.1.90.0060.00816.80
7.1.80.0060.01116.91
7.1.70.0050.01116.48
7.1.60.0130.01225.40
7.1.50.0130.01425.23
7.1.40.0130.00825.13
7.1.30.0080.01225.06
7.1.20.0080.01325.05
7.1.10.0020.01416.02
7.1.00.0000.01716.21
7.0.330.0090.00315.08
7.0.320.0030.01015.23
7.0.310.0030.00615.54
7.0.300.0070.00715.21
7.0.290.0060.00815.14
7.0.280.0030.00615.48
7.0.270.0070.00715.23
7.0.260.0080.00415.39
7.0.250.0070.00715.20
7.0.240.0060.00616.42
7.0.230.0060.01316.46
7.0.220.0080.00916.60
7.0.210.0050.00816.02
7.0.200.0040.00916.06
7.0.190.0060.00816.06
7.0.180.0090.00615.79
7.0.170.0080.00515.74
7.0.160.0020.01415.77
7.0.150.0080.00515.85
7.0.140.0060.01015.80
7.0.130.0050.00515.91
7.0.120.0030.00815.94
7.0.110.0100.00715.77
7.0.100.0030.01115.91
7.0.90.0070.00815.83
7.0.80.0030.01115.75
7.0.70.0070.00615.73
7.0.60.0040.00915.73
7.0.50.0050.00915.82
7.0.40.0060.00815.02
7.0.30.0010.01114.94
7.0.20.0110.00614.60
7.0.10.0090.00714.92
7.0.00.0080.00614.98
5.6.400.0000.01514.11
5.6.390.0000.01214.26
5.6.380.0000.01014.13
5.6.370.0100.00714.22
5.6.360.0070.01014.19
5.6.350.0100.00713.93
5.6.340.0070.00714.29
5.6.330.0030.00714.24
5.6.320.0090.00314.17
5.6.310.0100.00014.30
5.6.300.0030.00713.93
5.6.290.0030.01214.43
5.6.280.0030.00714.11
5.6.270.0080.00813.97
5.6.260.0060.00914.19
5.6.250.0080.00813.93
5.6.240.0090.00614.27
5.6.230.0040.00414.32
5.6.220.0100.00014.21
5.6.210.0030.01014.12
5.6.200.0060.00913.95
5.6.190.0060.01014.23
5.6.180.0040.00414.01
5.6.170.0060.00613.90
5.6.160.0030.00714.07
5.6.150.0070.00313.94
5.6.140.0140.00313.88
5.6.130.0070.00714.18
5.6.120.0120.00313.94
5.6.110.0060.01214.04
5.6.100.0100.00714.09
5.6.90.0120.00014.09
5.6.80.0060.01213.91
5.6.70.0070.01014.12
5.6.60.0030.00613.93
5.6.50.0000.01014.16
5.6.40.0100.00313.86
5.6.30.0070.00714.12
5.6.20.0060.00613.84
5.6.10.0030.00814.07
5.6.00.0060.00914.02

preferences:
59.15 ms | 401 KiB | 5 Q