3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { $foo; } class Bar extends Foo { $bar; } $barClassReflection = new ReflectionClass(Bar::class); $properties = $barClassReflection->getProperties(); var_dump($properties); foreach ($properties as $property) { var_dump($property->getName()); var_dump($property->class); var_dump($property->getDeclaringClass()->getName()); var_dump($property->class === $property->getDeclaringClass()->getName()); }

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)
7.3.00.0060.00616.35
7.2.130.0030.01216.79
7.2.120.0060.00616.80
7.2.110.0050.00816.59
7.2.100.0140.00416.59
7.2.90.0080.00516.76
7.2.80.0070.00716.84
7.2.70.0060.00616.69
7.2.60.0060.00616.68
7.2.50.0070.00716.57
7.2.40.0130.00316.32
7.2.30.0050.00916.60
7.2.20.0110.00616.77
7.2.10.0000.01416.52
7.2.00.0090.00916.65
7.1.250.0110.00415.50
7.0.330.0050.00815.34
5.6.380.0060.00614.19

preferences:
144.64 ms | 1394 KiB | 7 Q