3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface OwnerInterface { public function setData($data); public function getOwnerId($name); public function getOwner($ownerId); } interface AssetInterface { public function setData($data); public function getAssetId($ownerId); public function getAsset($assetId); } class Asset implements AssetInterface, OwnerInterface { protected $assetId; // string or int? DB autogen? protected $assetType; // string protected $assetSubType; protected $ownerId; // protected $owner; // object protected $beneficiary; // string public function setData($data) { } public function getAssetId($ownerId) { } public function getAsset($assetId) { return $this; } public function getAssetType($assetId) { } public function getAssetSubType($assetId) { } public function getOwnerId($name) { } public function getOwner($ownerId) { return $this->owner; // Owner object; I don't think this is the owner object } public function setAssetId($assetId) { } public function setAsset($assetId) { } public function setAssetType($assetId) { } public function setAssetSubType($assetId, $subType) { $this->assetSubType=$subType; } public function setOwnerId($ownerId) { } } ////////////////////////////////////////////////////////// $asset=new Asset(); $assetId="A0001"; $assetType="BUILDING"; $assetSubType="Gas Station"; $ownerId="Current Owner Id"; $asset->$assetId=$assetId; // string or int? DB autogen? $asset->$assetType=$assetType; // string $asset->$ownerId=$ownerId; // $asset->$assetSubType=$assetSubType; // string var_dump($asset);

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.20.0100.00720.45
8.4.10.0140.00719.32
8.3.150.0100.00317.19
8.3.140.0040.01218.91
8.3.130.0060.00318.39
8.3.120.0080.00019.06
8.3.110.0000.00920.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0090.00618.43
8.3.60.0070.01518.68
8.3.50.0130.00418.20
8.3.40.0110.00418.89
8.3.30.0110.00718.68
8.3.20.0050.00318.91
8.3.10.0080.00021.76
8.3.00.0090.00020.89
8.2.260.0190.00016.43
8.2.250.0040.01516.68
8.2.240.0080.00018.84
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0150.00326.77
8.2.200.0030.00616.75
8.2.190.0150.00016.73
8.2.180.0140.00718.36
8.2.170.0000.01522.96
8.2.160.0140.00322.15
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.71
8.2.120.0040.00426.35
8.2.110.0090.00020.29
8.2.100.0080.00417.91
8.2.90.0050.00317.97
8.2.80.0060.00317.97
8.2.70.0080.00317.93
8.2.60.0000.00818.22
8.2.50.0040.00518.10
8.2.40.0080.00022.15
8.2.30.0030.00519.28
8.2.20.0030.00618.10
8.2.10.0090.00018.16
8.2.00.0050.00318.34
8.1.310.0040.00420.12
8.1.300.0150.00618.12
8.1.290.0030.00730.84
8.1.280.0090.00625.92
8.1.270.0080.00822.19
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00523.70
8.1.230.0100.00523.73
8.1.220.0040.00417.79
8.1.210.0050.00318.78
8.1.200.0100.00017.22
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0050.00318.63
8.1.160.0080.00020.59
8.1.150.0040.00418.99
8.1.140.0040.00422.09
8.1.130.0070.00017.50
8.1.120.0060.00317.48
8.1.110.0090.00017.45
8.1.100.0040.00417.39
8.1.90.0040.00417.39
8.1.80.0060.00317.52
8.1.70.0000.00817.45
8.1.60.0000.00917.51
8.1.50.0050.00317.57
8.1.40.0080.00017.56
8.1.30.0030.00617.74
8.1.20.0070.00317.70
8.1.10.0040.00417.41
8.1.00.0080.00017.38
8.0.300.0060.00321.47
8.0.290.0040.00416.72
8.0.280.0040.00418.48
8.0.270.0040.00416.86
8.0.260.0030.00316.74
8.0.250.0020.00517.00
8.0.240.0070.00016.99
8.0.230.0070.00016.88
8.0.220.0000.00716.90
8.0.210.0000.00716.82
8.0.200.0070.00017.06
8.0.190.0030.00517.02
8.0.180.0070.00016.85
8.0.170.0030.00616.96
8.0.160.0040.00416.93
8.0.150.0040.00416.79
8.0.140.0030.00516.91
8.0.130.0070.00013.36
8.0.120.0040.00416.88
8.0.110.0000.00816.96
8.0.100.0040.00416.94
8.0.90.0040.00416.72
8.0.80.0080.00816.94
8.0.70.0050.00216.73
8.0.60.0050.00216.84
8.0.50.0080.00016.85
8.0.30.0130.01317.23
8.0.20.0110.00817.40
8.0.10.0040.00417.04
8.0.00.0100.01016.85
7.4.330.0000.00515.55
7.4.320.0030.00316.54
7.4.300.0060.00016.49
7.4.290.0080.00016.60
7.4.280.0030.00616.53
7.4.270.0050.00316.60
7.4.260.0000.00716.67
7.4.250.0030.00516.61
7.4.240.0030.00316.56
7.4.230.0000.00716.45
7.4.220.0040.00416.42
7.4.210.0020.01416.51
7.4.200.0040.00416.45
7.4.160.0080.00916.56
7.4.140.0110.00617.86
7.4.130.0160.00816.64
7.4.120.0100.01016.52
7.4.110.0130.01116.45
7.4.100.0110.00716.58
7.4.90.0090.00916.62
7.4.80.0120.00619.39
7.4.70.0070.01416.36
7.4.60.0120.00416.43
7.4.50.0060.00916.25
7.4.40.0070.01516.63
7.4.10.0100.00915.14
7.4.00.0080.00914.85
7.3.330.0030.00313.28
7.3.320.0000.00613.21
7.3.310.0070.00016.28
7.3.300.0030.00316.29
7.3.290.0040.00416.26
7.3.280.0120.00316.25
7.3.260.0100.01416.32
7.3.240.0110.00716.33
7.3.230.0030.01416.61
7.3.210.0030.01316.43
7.3.200.0110.00816.17
7.3.190.0150.00916.33
7.3.180.0140.01016.59
7.3.170.0090.01316.25
7.3.160.0030.01316.40
7.3.130.0060.01314.83
7.3.120.0060.01014.77
7.3.110.0060.01014.71
7.3.100.0050.00914.84
7.3.90.0060.00714.88
7.3.80.0060.00714.99
7.3.70.0060.00714.86
7.3.60.0080.00314.80
7.3.50.0090.00414.71
7.3.40.0080.00414.72
7.3.30.0030.00814.45
7.3.20.0050.01016.44
7.3.10.0050.01016.54
7.3.00.0050.01116.63
7.2.330.0110.00616.45
7.2.320.0030.01516.77
7.2.310.0060.01116.66
7.2.300.0050.01716.68
7.2.290.0070.01116.59
7.2.260.0050.01414.93
7.2.250.0090.00614.98
7.2.240.0020.01415.06
7.2.230.0090.00714.90
7.2.220.0070.00714.97
7.2.210.0040.01214.91
7.2.200.0060.00414.88
7.2.190.0030.01214.90
7.2.180.0050.00514.97
7.2.170.0070.00515.04
7.2.160.0020.00815.01
7.2.150.0090.00816.66
7.2.140.0100.00516.81
7.2.130.0050.00816.71
7.2.120.0050.01016.69
7.2.110.0080.00516.42
7.2.100.0070.01016.75
7.2.90.0060.00816.71
7.2.80.0060.00816.65
7.2.70.0080.00916.80
7.2.60.0120.00616.79
7.2.50.0070.00616.81
7.2.40.0060.00916.95
7.2.30.0050.00916.88
7.2.20.0090.00716.84
7.2.10.0060.01016.86
7.2.00.0050.00816.77
7.1.330.0060.00715.81
7.1.320.0060.00615.73
7.1.310.0040.00715.82
7.1.300.0050.00615.74
7.1.290.0050.00815.69
7.1.280.0030.01015.72
7.1.270.0040.00915.81
7.1.260.0060.00815.70
7.1.250.0060.00615.88
7.1.240.0070.01115.64
7.1.230.0060.01015.74
7.1.220.0080.00915.62
7.1.210.0070.00615.79
7.1.200.0070.00615.70
7.1.190.0080.00715.65
7.1.180.0060.00715.81
7.1.170.0080.00415.66
7.1.160.0020.01015.79
7.1.150.0110.00415.74
7.1.140.0080.00515.80
7.1.130.0070.00615.84
7.1.120.0030.00815.66
7.1.110.0060.00515.73
7.1.100.0070.00715.87
7.1.90.0030.01115.74
7.1.80.0030.00715.55
7.1.70.0030.01115.67
7.1.60.0050.00715.63
7.1.50.0080.00815.81
7.1.40.0040.00715.63
7.1.30.0060.00615.63
7.1.20.0090.00415.66
7.1.10.0030.01215.67
7.1.00.0050.00815.76
7.0.330.0090.00515.36
7.0.320.0020.01115.38
7.0.310.0050.00715.01
7.0.300.0050.00515.42
7.0.290.0060.00615.28
7.0.280.0080.00515.45
7.0.270.0090.00415.33
7.0.260.0080.00515.33
7.0.250.0050.00815.41
7.0.240.0070.00415.45
7.0.230.0060.00715.33
7.0.220.0020.00915.09
7.0.210.0040.00715.34
7.0.200.0040.00815.31
7.0.190.0060.00815.35
7.0.180.0050.00815.47
7.0.170.0060.00415.43
7.0.160.0050.00915.30
7.0.150.0060.00615.23
7.0.140.0020.01015.17
7.0.130.0070.00315.42
7.0.120.0070.00615.42
7.0.110.0100.00215.24
7.0.100.0100.00715.31
7.0.90.0030.01115.46
7.0.80.0020.01115.34
7.0.70.0050.00815.32
7.0.60.0020.00615.42
7.0.50.0050.00715.22
7.0.40.0060.00613.18
7.0.30.0080.00613.17
7.0.20.0040.00913.30
7.0.10.0050.00713.42
7.0.00.0050.00513.39
5.6.400.0040.01114.23
5.6.390.0090.00414.54
5.6.380.0080.00914.55
5.6.370.0050.00814.50
5.6.360.0020.01014.25
5.6.350.0020.01114.36
5.6.340.0050.01114.37
5.6.330.0070.00614.15
5.6.320.0050.00914.21
5.6.310.0080.00214.59
5.6.300.0060.00514.15
5.6.290.0060.00614.44
5.6.280.0070.00414.34
5.6.270.0050.00714.48
5.6.260.0060.00814.27
5.6.250.0070.00514.40
5.6.240.0080.00814.40
5.6.230.0020.01214.33
5.6.220.0020.01314.37
5.6.210.0030.01014.45
5.6.200.0070.00414.42
5.6.190.0030.01014.33
5.6.180.0080.00614.50
5.6.170.0080.00414.21
5.6.160.0030.01014.30
5.6.150.0020.00914.35
5.6.140.0070.00614.32
5.6.130.0050.00814.48
5.6.120.0050.00914.37
5.6.110.0050.01014.52
5.6.100.0020.01414.37
5.6.90.0050.01114.27
5.6.80.0050.00814.22
5.6.70.0040.00914.28
5.6.60.0050.00714.26
5.6.50.0070.00414.33
5.6.40.0090.00614.41
5.6.30.0060.01014.43
5.6.20.0020.01314.35
5.6.10.0060.00814.18
5.6.00.0050.00614.34

preferences:
34.19 ms | 403 KiB | 5 Q