3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FabricAwareInterface { public function setFabric($fabric); //protected 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.0000.01918.43
8.3.50.0090.00921.99
8.3.40.0110.00418.58
8.3.30.0160.00018.71
8.3.20.0080.00020.21
8.3.10.0040.00423.69
8.3.00.0080.00019.79
8.2.180.0100.01016.50
8.2.170.0100.01022.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0030.00621.00
8.2.120.0030.00526.35
8.2.110.0070.00319.27
8.2.100.0070.00417.80
8.2.90.0040.00419.17
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0040.00417.88
8.2.50.0030.00618.07
8.2.40.0030.00621.18
8.2.30.0020.00520.51
8.2.20.0000.01017.57
8.2.10.0040.00417.96
8.2.00.0000.00717.95
8.1.280.0120.00625.92
8.1.270.0030.00618.89
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00623.96
8.1.230.0110.00020.94
8.1.220.0000.00717.79
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0030.00618.61
8.1.160.0040.00420.82
8.1.150.0070.00018.82
8.1.140.0030.00519.59
8.1.130.0030.00317.71
8.1.120.0030.00317.39
8.1.110.0050.00217.34
8.1.100.0000.00717.48
8.1.90.0000.00717.53
8.1.80.0070.00017.43
8.1.70.0040.00417.39
8.1.60.0040.00417.63
8.1.50.0030.00617.52
8.1.40.0040.00417.45
8.1.30.0040.00417.69
8.1.20.0040.00417.55
8.1.10.0000.00717.61
8.1.00.0000.00717.59
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0070.00017.18
8.0.260.0000.00717.12
8.0.250.0070.00016.90
8.0.240.0040.00416.84
8.0.230.0000.00716.98
8.0.220.0000.00716.95
8.0.210.0030.00516.79
8.0.200.0000.00717.00
8.0.190.0040.00416.93
8.0.180.0050.00316.98
8.0.170.0040.00416.82
8.0.160.0000.00716.96
8.0.150.0000.00716.82
8.0.140.0030.00616.85
8.0.130.0050.00013.29
8.0.120.0030.00516.85
8.0.110.0040.00416.84
8.0.100.0000.00816.92
8.0.90.0000.00716.69
8.0.80.0060.00916.87
8.0.70.0040.00416.70
8.0.60.0000.00716.94
8.0.50.0000.00716.91
8.0.30.0080.01216.92
8.0.20.0120.00817.40
8.0.10.0030.00517.11
8.0.00.0120.00716.79
7.4.330.0000.00516.85
7.4.320.0060.00016.64
7.4.300.0000.00716.49
7.4.290.0070.00016.66
7.4.280.0080.00016.57
7.4.270.0030.00316.61
7.4.260.0000.00716.49
7.4.250.0000.00716.48
7.4.240.0000.00716.54
7.4.230.0000.00716.26
7.4.220.0170.00316.64
7.4.210.0110.00316.65
7.4.200.0000.00716.32
7.4.160.0060.00916.38
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0130.00516.57
7.4.120.0080.00816.55
7.4.110.0150.00916.67
7.4.100.0160.00616.34
7.4.90.0170.00016.68
7.4.80.0080.01519.39
7.4.70.0060.01016.51
7.4.60.0110.00516.54
7.4.50.0080.00616.43
7.4.40.0120.01016.53
7.4.30.0090.00616.58
7.4.00.0100.00314.90
7.3.330.0050.00013.02
7.3.320.0000.00613.24
7.3.310.0040.00416.29
7.3.300.0060.00016.11
7.3.290.0100.00616.23
7.3.280.0080.00716.22
7.3.270.0040.01217.40
7.3.260.0100.01016.30
7.3.250.0140.01016.28
7.3.240.0100.00916.29
7.3.230.0060.01016.39
7.3.210.0060.01016.36
7.3.200.0190.00416.45
7.3.190.0030.01416.30
7.3.180.0070.01316.29
7.3.170.0070.01016.36
7.3.160.0070.01016.26
7.3.120.0070.00714.79
7.3.110.0030.01414.55
7.3.100.0060.00914.71
7.3.90.0030.00714.56
7.3.80.0030.00614.87
7.3.70.0040.00814.75
7.3.60.0060.00614.57
7.3.50.0030.01014.63
7.3.40.0000.00914.42
7.3.30.0100.00014.80
7.3.20.0100.00316.36
7.3.10.0080.00816.54
7.3.00.0040.01016.67
7.2.330.0070.01316.70
7.2.320.0110.00716.43
7.2.310.0000.01716.74
7.2.300.0070.01016.73
7.2.290.0030.01316.69
7.2.250.0040.01415.12
7.2.240.0040.01515.21
7.2.230.0070.01014.68
7.2.220.0030.00815.09
7.2.210.0060.00914.86
7.2.200.0030.00614.50
7.2.190.0070.00714.80
7.2.180.0130.00314.86
7.2.170.0070.01014.95
7.2.130.0100.00316.85
7.2.120.0120.00416.80
7.2.110.0030.00816.64
7.2.100.0120.00316.90
7.2.90.0030.01316.83
7.2.80.0040.01416.59
7.2.70.0090.00917.00
7.2.60.0000.01416.93
7.2.50.0080.00416.93
7.2.40.0120.00316.98
7.2.30.0060.00617.02
7.2.20.0030.00916.60
7.2.10.0130.00317.02
7.2.00.0030.01118.06
7.1.330.0030.01315.58
7.1.320.0000.01315.90
7.1.310.0040.01115.79
7.1.300.0090.00615.73
7.1.290.0070.00715.61
7.1.280.0080.00815.67
7.1.270.0060.00315.73
7.1.260.0040.00715.66
7.1.250.0000.01315.79
7.1.100.0100.00317.62
7.1.70.0000.01516.86
7.1.60.0100.00317.31
7.1.50.0160.02234.49
7.1.00.0070.07322.36
7.0.200.0000.01616.57
7.0.60.0070.08319.83
7.0.50.0030.04017.90
7.0.40.0070.04020.09
7.0.30.0270.05020.16
7.0.20.0270.04320.13
7.0.10.0070.07020.07
7.0.00.0170.07720.25
5.6.280.0000.03320.79
5.6.210.0170.07720.55
5.6.200.0130.06018.18
5.6.190.0100.05720.57
5.6.180.0530.06320.51
5.6.170.0230.06720.56
5.6.160.0030.04020.46
5.6.150.0100.07318.16
5.6.140.0100.04318.19
5.6.130.0070.05018.27
5.6.120.0130.04321.13
5.6.110.0100.07321.13
5.6.100.0030.08320.98
5.6.90.0170.07320.98
5.6.80.0070.03720.41
5.5.350.0030.07720.44
5.5.340.0030.06018.09
5.5.330.0070.08320.47
5.5.320.0500.06020.34
5.5.310.0300.06320.27
5.5.300.0100.07317.97
5.5.290.0070.03717.98
5.5.280.0070.08320.69
5.5.270.0070.05320.73
5.5.260.0070.08020.82
5.5.250.0100.08020.71
5.5.240.0070.03020.16

preferences:
46.69 ms | 401 KiB | 5 Q