3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); abstract class Object {} interface iObjectID { public function getId(); public function setId(int $id = NULL); } trait tObjectID { /** * @TF: {column => id, type => int} * integer $id */ protected $id; public function getId() { return $this->id; } public function setId(int $id = NULL) { $this->id = $id; } } trait tObjectName { /** * @TF: {column => name, type => string} * string $name */ protected $name; public function getName(): string { return $this->name; } public function setName(string $name = NULL) { $this->name = $name; } } trait tObjectCoolurl { /** * @TF: {column => coolurl, type => string} * string $coolurl */ protected $coolurl; public function getCoolurl(): string { return $this->coolurl; } public function setCoolurl(string $coolurl = NULL) { $this->coolurl = $coolurl; } } class Gallery extends Object implements iObjectID { use tObjectID; use tObjectName; use tObjectCoolurl; } //Instantiate the reflection object $reflector = new ReflectionClass('Gallery'); // Now get all the properties from class A in to $properties array $properties = $reflector->getProperties(); var_dump($properties);

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.0120.00618.43
8.3.50.0090.01218.03
8.3.40.0100.00718.67
8.3.30.0000.01518.54
8.3.20.0070.00020.20
8.3.10.0080.00023.66
8.3.00.0050.00319.50
8.2.180.0120.00418.17
8.2.170.0100.00322.96
8.2.160.0110.00720.49
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00619.21
8.2.120.0040.00426.35
8.2.110.0090.00019.20
8.2.100.0080.00317.78
8.2.90.0080.00419.09
8.2.80.0060.00317.97
8.2.70.0080.00017.50
8.2.60.0030.00517.80
8.2.50.0050.00518.07
8.2.40.0090.00022.33
8.2.30.0000.00720.68
8.2.20.0000.00817.63
8.2.10.0070.00017.93
8.2.00.0070.00017.94
8.1.280.0140.00425.92
8.1.270.0040.00420.24
8.1.260.0040.00428.09
8.1.250.0120.00328.09
8.1.240.0030.00621.30
8.1.230.0070.00417.42
8.1.220.0000.00717.74
8.1.210.0070.00318.77
8.1.200.0000.00817.13
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00418.45
8.1.160.0080.00020.52
8.1.150.0040.00418.63
8.1.140.0030.00619.44
8.1.130.0080.00017.66
8.1.120.0050.00317.25
8.1.110.0040.00417.23
8.1.100.0050.00317.24
8.1.90.0040.00417.36
8.1.80.0000.00717.35
8.1.70.0040.00417.20
8.1.60.0050.00317.47
8.1.50.0060.00317.31
8.1.40.0030.00517.34
8.1.30.0000.00817.46
8.1.20.0070.00017.54
8.1.10.0000.00717.29
8.1.00.0050.00317.29
8.0.300.0000.00718.77
8.0.290.0040.00716.75
8.0.280.0030.00318.32
8.0.270.0070.00017.18
8.0.260.0030.00517.08
8.0.250.0060.00016.90
8.0.240.0000.00716.78
8.0.230.0000.00816.82
8.0.220.0080.00016.84
8.0.210.0030.00316.83
8.0.200.0030.00316.86
8.0.190.0030.00716.85
8.0.180.0030.00516.79
8.0.170.0040.00416.70
8.0.160.0000.00716.81
8.0.150.0000.00716.75
8.0.140.0030.00616.66
8.0.130.0030.00313.21
8.0.120.0070.00016.68
8.0.110.0030.00516.66
8.0.100.0000.00716.68
8.0.90.0080.00016.80
8.0.80.0060.01316.78
8.0.70.0040.00416.81
8.0.60.0070.00016.86
8.0.50.0080.00016.71
8.0.30.0120.00617.01
8.0.20.0120.00617.40
8.0.10.0070.00016.79
8.0.00.0100.00916.56
7.4.330.0000.00516.79
7.4.320.0070.00016.37
7.4.300.0030.00316.36
7.4.290.0020.00516.50
7.4.280.0040.00416.29
7.4.270.0040.00416.27
7.4.260.0040.00416.44
7.4.250.0070.00016.32
7.4.240.0000.00716.33
7.4.230.0000.00716.47
7.4.220.0080.01516.36
7.4.210.0100.00316.31
7.4.200.0030.00316.25
7.4.160.0130.00316.35
7.4.150.0070.01017.40
7.4.140.0140.00817.86
7.4.130.0060.01316.43
7.4.120.0140.00516.35
7.4.110.0100.00716.18
7.4.100.0140.01016.28
7.4.90.0080.00816.07
7.4.80.0130.01119.39
7.4.70.0040.01216.28
7.4.60.0060.01016.45
7.4.50.0030.01016.44
7.4.40.0070.01016.44
7.4.30.0080.01116.28
7.4.00.0100.00315.05
7.3.330.0060.00013.11
7.3.320.0050.00012.96
7.3.310.0000.00716.34
7.3.300.0030.00316.22
7.3.290.0040.01216.21
7.3.280.0090.00816.23
7.3.270.0040.01417.40
7.3.260.0120.00416.27
7.3.250.0060.01116.40
7.3.240.0030.01516.12
7.3.230.0060.01516.39
7.3.210.0140.00716.36
7.3.200.0110.00716.05
7.3.190.0170.00016.45
7.3.180.0120.00616.39
7.3.170.0070.01016.27
7.3.160.0080.00716.24
7.3.10.0120.00316.68
7.3.00.0000.01016.56
7.2.330.0070.01016.24
7.2.320.0100.01316.45
7.2.310.0100.01016.49
7.2.300.0000.01716.15
7.2.290.0090.01216.18
7.2.130.0100.00716.60
7.2.120.0070.00716.69
7.2.110.0120.00516.47
7.2.100.0070.01016.72
7.2.90.0120.00316.32
7.2.80.0000.01516.68
7.2.70.0000.01516.55
7.2.60.0090.00616.51
7.2.50.0120.00416.68
7.2.40.0100.00316.89
7.2.30.0040.00816.55
7.2.20.0090.00316.88
7.2.10.0070.00716.82
7.2.00.0050.00817.95
7.1.250.0040.01215.65
7.1.200.0040.01115.93
7.1.100.0040.00817.88
7.1.70.0000.00817.18
7.1.60.0070.01719.52
7.1.50.0030.01716.98
7.1.00.0000.08022.33
7.0.200.0000.00916.84
7.0.60.0170.06720.05
7.0.50.0070.08717.73
7.0.40.0100.07020.27
7.0.30.0300.03720.27
7.0.20.0370.07320.14
7.0.10.0100.08020.21
7.0.00.0030.04320.22
5.6.210.0030.09020.66
5.6.200.0200.07318.15
5.6.190.0000.05020.61
5.6.180.0330.07320.63
5.6.170.0430.06720.52
5.6.160.0070.08320.54
5.6.150.0100.05018.15
5.6.140.0070.08318.18
5.6.130.0200.06718.13
5.6.120.0100.08021.13
5.6.110.0030.04020.98
5.6.100.0030.08321.01
5.6.90.0130.07321.13
5.6.80.0100.08020.42
5.5.350.0170.07720.43
5.5.340.0100.03718.07
5.5.330.0000.05020.27
5.5.320.0100.06020.38
5.5.310.0130.05320.56
5.5.300.0070.08317.96
5.5.290.0030.04017.98
5.5.280.0070.08320.82
5.5.270.0030.06020.89
5.5.260.0170.05320.88
5.5.250.0030.06020.75
5.5.240.0370.06320.08

preferences:
62.33 ms | 400 KiB | 5 Q