3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FabricAwareInterface { public function setFabric($fabric); public function getFabric(); } trait FabricAware { private $_fabric; public function setFabric($f) { $this->_fabric = $f; } protected function getFabric() { return $this->_fabric; } } class ClassA implements FabricAwareInterface { use FabricAware; public function init() { echo 'OK'; } } $a = new ClassA(); $a->init();

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.01018.56
8.3.50.0150.00322.05
8.3.40.0070.00718.58
8.3.30.0030.01218.67
8.3.20.0070.00020.39
8.3.10.0040.00423.49
8.3.00.0030.00619.79
8.2.180.0050.01016.63
8.2.170.0140.00022.96
8.2.160.0000.01420.39
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0090.00021.04
8.2.120.0040.00426.35
8.2.110.0040.00419.31
8.2.100.0000.01117.71
8.2.90.0030.00617.75
8.2.80.0030.00619.16
8.2.70.0040.00417.91
8.2.60.0000.00917.86
8.2.50.0000.00719.22
8.2.40.0040.00421.20
8.2.30.0040.00420.64
8.2.20.0080.00017.61
8.2.10.0070.00017.89
8.2.00.0080.00018.04
8.1.280.0100.00725.92
8.1.270.0050.00318.52
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00623.89
8.1.230.0060.00620.85
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0080.00017.22
8.1.190.0040.00417.57
8.1.180.0050.00318.10
8.1.170.0080.00018.53
8.1.160.0050.00220.71
8.1.150.0000.00818.83
8.1.140.0040.00419.43
8.1.130.0070.00017.75
8.1.120.0000.00717.38
8.1.110.0070.00017.36
8.1.100.0070.00017.48
8.1.90.0070.00017.42
8.1.80.0080.00017.36
8.1.70.0030.00317.30
8.1.60.0040.00417.44
8.1.50.0030.00517.37
8.1.40.0040.00417.32
8.1.30.0040.00417.56
8.1.20.0050.00517.60
8.1.10.0060.00317.28
8.1.00.0000.00917.23
8.0.300.0030.00320.02
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0070.00017.22
8.0.260.0030.00317.11
8.0.250.0000.00716.88
8.0.240.0000.00716.93
8.0.230.0050.00216.96
8.0.220.0050.00316.86
8.0.210.0000.00716.86
8.0.200.0000.00616.89
8.0.190.0000.00716.84
8.0.180.0060.00316.84
8.0.170.0040.00416.83
8.0.160.0040.00416.91
8.0.150.0000.00716.74
8.0.140.0000.01116.76
8.0.130.0000.00513.29
8.0.120.0080.00016.77
8.0.110.0040.00416.75
8.0.100.0000.00716.73
8.0.90.0040.00416.91
8.0.80.0120.00316.84
8.0.70.0060.00316.70
8.0.60.0040.00416.97
8.0.50.0040.00416.70
8.0.30.0120.00616.97
8.0.20.0100.00917.40
8.0.10.0000.00716.93
8.0.00.0090.00916.68
7.4.330.0020.00216.91
7.4.320.0000.00716.41
7.4.300.0030.00316.44
7.4.290.0000.00716.52
7.4.280.0030.00516.55
7.4.270.0040.00416.50
7.4.260.0030.00316.53
7.4.250.0080.00016.34
7.4.240.0040.00316.53
7.4.230.0030.00316.61
7.4.220.0060.00916.51
7.4.210.0090.00616.57
7.4.200.0050.00216.58
7.4.160.0060.01016.38
7.4.150.0040.01617.40
7.4.140.0150.00617.86
7.4.130.0060.01116.51
7.4.120.0080.01016.39
7.4.110.0150.00916.38
7.4.100.0150.00616.33
7.4.90.0100.00616.51
7.4.80.0100.00719.39
7.4.70.0030.01416.57
7.4.60.0070.01016.54
7.4.50.0070.01016.31
7.4.40.0140.00516.66
7.4.30.0100.00716.45
7.4.10.0070.00714.98
7.4.00.0070.01014.83
7.3.330.0050.00013.10
7.3.320.0050.00013.31
7.3.310.0040.00416.21
7.3.300.0030.00316.16
7.3.290.0040.01316.25
7.3.280.0080.01016.24
7.3.270.0160.00217.40
7.3.260.0100.00716.41
7.3.250.0130.00616.24
7.3.240.0110.00816.33
7.3.230.0090.00916.45
7.3.210.0120.00416.16
7.3.200.0080.00816.15
7.3.190.0040.01216.38
7.3.180.0100.00716.26
7.3.170.0060.01016.53
7.3.160.0040.01216.37
7.3.130.0100.00414.68
7.3.120.0030.01214.67
7.3.110.0070.00814.63
7.3.100.0050.00814.86
7.3.90.0060.00914.83
7.3.80.0050.01014.86
7.3.70.0040.00814.67
7.3.60.0120.00314.73
7.3.50.0050.00514.73
7.3.40.0040.00914.74
7.3.30.0070.00714.59
7.3.20.0080.00816.61
7.3.10.0080.00616.39
7.3.00.0050.00916.56
7.2.330.0060.01216.59
7.2.320.0130.00316.26
7.2.310.0120.00616.43
7.2.300.0070.01016.22
7.2.290.0060.01016.32
7.2.260.0070.00714.80
7.2.250.0050.01114.95
7.2.240.0050.00914.90
7.2.230.0100.00615.06
7.2.220.0050.00714.79
7.2.210.0080.00914.95
7.2.200.0030.01014.95
7.2.190.0070.00914.81
7.2.180.0050.00814.85
7.2.170.0060.00714.88
7.2.160.0060.00814.93
7.2.150.0090.00716.76
7.2.140.0060.01016.70
7.2.130.0030.01016.74
7.2.120.0040.00816.83
7.2.110.0070.00616.90
7.2.100.0020.01116.78
7.2.90.0100.00716.86
7.2.80.0030.00716.72
7.2.70.0080.00916.80
7.2.60.0050.00816.73
7.2.50.0070.00616.82
7.2.40.0070.00716.77
7.2.30.0070.00816.83
7.2.20.0050.00516.70
7.2.10.0120.00216.69
7.2.00.0030.00917.45
7.1.330.0100.00515.65
7.1.320.0050.00715.72
7.1.310.0040.01115.49
7.1.300.0010.01115.66
7.1.290.0050.00815.56
7.1.280.0060.00815.73
7.1.270.0060.00815.74
7.1.260.0090.00615.64
7.1.250.0030.00515.46
7.1.240.0050.00915.40
7.1.230.0040.00615.51
7.1.220.0050.00615.56
7.1.210.0060.00715.59
7.1.200.0070.00615.63
7.1.190.0070.00615.73
7.1.180.0080.00615.74
7.1.170.0060.00815.73
7.1.160.0070.00515.73
7.1.150.0040.00915.57
7.1.140.0030.00715.47
7.1.130.0000.01315.71
7.1.120.0050.00515.45
7.1.110.0040.00515.53
7.1.100.0040.00916.45
7.1.90.0090.00615.54
7.1.80.0000.01315.65
7.1.70.0030.01316.16
7.1.60.0050.01416.75
7.1.50.0050.00815.97
7.1.40.0050.01015.52
7.1.30.0030.01115.66
7.1.20.0030.00915.52
7.1.10.0030.01315.70
7.1.00.0040.03217.90
7.0.330.0020.00915.32
7.0.320.0060.00615.38
7.0.310.0060.00715.27
7.0.300.0060.00615.32
7.0.290.0040.00615.26
7.0.280.0030.01215.24
7.0.270.0080.00615.31
7.0.260.0020.00915.21
7.0.250.0090.00615.15
7.0.240.0080.00115.30
7.0.230.0080.00415.31
7.0.220.0060.00615.36
7.0.210.0080.00815.19
7.0.200.0020.01115.86
7.0.190.0040.00915.20
7.0.180.0020.01115.12
7.0.170.0050.00715.37
7.0.160.0070.00615.12
7.0.150.0080.00615.45
7.0.140.0070.00915.13
7.0.130.0060.00715.24
7.0.120.0050.00815.14
7.0.110.0020.00815.27
7.0.100.0060.00615.23
7.0.90.0060.00815.33
7.0.80.0050.00515.38
7.0.70.0050.00515.25
7.0.60.0060.03116.85
7.0.50.0070.01516.17
7.0.40.0070.02915.54
7.0.30.0140.03215.55
7.0.20.0090.02115.67
7.0.10.0040.03115.58
7.0.00.0100.02715.59
5.6.400.0050.00714.10
5.6.390.0030.00914.14
5.6.380.0060.00614.30
5.6.370.0050.00814.17
5.6.360.0000.01314.28
5.6.350.0000.01214.13
5.6.340.0060.00414.17
5.6.330.0030.01013.99
5.6.320.0040.01014.26
5.6.310.0070.00713.99
5.6.300.0030.01013.98
5.6.290.0050.01014.08
5.6.280.0040.01916.48
5.6.270.0050.00914.15
5.6.260.0050.00514.20
5.6.250.0070.00714.11
5.6.240.0020.01114.11
5.6.230.0040.00914.11
5.6.220.0020.01014.18
5.6.210.0050.03116.25
5.6.200.0060.01915.41
5.6.190.0080.02216.14
5.6.180.0220.02316.29
5.6.170.0140.01816.27
5.6.160.0070.01716.36
5.6.150.0050.03315.45
5.6.140.0050.02715.50
5.6.130.0060.02915.52
5.6.120.0090.03216.54
5.6.110.0040.03516.62
5.6.100.0060.03216.52
5.6.90.0100.01916.44
5.6.80.0020.02416.39
5.6.70.0040.01114.18
5.6.60.0030.00714.28
5.6.50.0060.00914.16
5.6.40.0130.00214.11
5.6.30.0050.00714.35
5.6.20.0060.00814.24
5.6.10.0070.00814.27
5.6.00.0080.00814.19
5.5.380.0090.00314.20
5.5.370.0040.01114.24
5.5.360.0030.01014.05
5.5.350.0070.02816.16
5.5.340.0050.03115.35
5.5.330.0060.03116.06
5.5.320.0180.02116.19
5.5.310.0120.03016.15
5.5.300.0070.02315.34
5.5.290.0050.01815.48
5.5.280.0050.02216.39
5.5.270.0080.02016.46
5.5.260.0090.03116.43
5.5.250.0050.03616.29
5.5.240.0090.02316.13
5.5.230.0090.00714.05
5.5.220.0070.00314.25
5.5.210.0060.00714.15
5.5.200.0090.00514.13
5.5.190.0060.00614.28
5.5.180.0060.00614.21
5.5.170.0070.00714.09
5.5.160.0050.01114.17
5.5.150.0030.00914.26
5.5.140.0070.00514.11
5.5.130.0080.00713.90
5.5.120.0070.00514.11
5.5.110.0000.01014.04
5.5.100.0070.00714.25
5.5.90.0080.00614.19
5.5.80.0030.00514.15
5.5.70.0040.00814.13
5.5.60.0090.00314.22
5.5.50.0070.00414.10
5.5.40.0030.01213.93
5.5.30.0040.00913.95
5.5.20.0020.00714.20
5.5.10.0050.00614.37
5.5.00.0060.00914.09

preferences:
50.64 ms | 401 KiB | 5 Q