3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PropertyHooks { public ?string $backedGetOnly { get => $this->backedGetOnly; } public ?string $backedSetOnly { set (?string $value) { $this->backedSetOnly = $value; } } public ?string $backedGetAndSet { set (?string $value) { $this->backedGetAndSet = $value; } get => $this->backedGetAndSet; } } $propertyHooks = new PropertyHooks(); $reflectionProperty = new ReflectionProperty($propertyHooks, 'backedGetOnly'); $reflectionProperty->isInitialized($propertyHooks); // returns true - I would expect false // backSetOnly reports false // backedGetAndSet reports true - I would also expect false if ($reflectionProperty->isInitialized($propertyHooks)) { $reflectionProperty->getRawValue($propertyHooks); // Uncaught exception 'Error' with message Typed property PropertyHooks::$backedGetOnly must not be accessed before initialization }

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.110.0300.00722.58
8.3.100.0450.00022.58
8.3.90.0390.00422.58
8.3.80.0400.00722.58
8.3.70.0400.01122.58
8.3.60.0480.00322.58
8.3.50.0430.00022.58
8.3.40.0220.00622.58
8.3.30.0320.01222.58
8.3.20.0350.00822.58
8.3.10.0260.01322.58
8.3.00.0240.00422.58
8.2.230.0260.01322.58
8.2.220.0330.00722.58
8.2.210.0240.00922.58
8.2.200.0370.00322.58
8.2.190.0370.00022.58
8.2.180.0340.00822.58
8.2.170.0420.00822.58
8.2.160.0300.01322.58
8.2.150.0350.00422.58
8.2.140.0390.00722.58
8.2.130.0410.00322.58
8.2.120.0280.01522.58
8.2.110.0440.01022.58
8.2.100.0410.00722.58
8.2.90.0310.01222.58
8.2.80.0320.00622.58
8.2.70.0160.00422.58
8.2.60.0300.00422.58
8.2.50.0200.00022.58
8.2.40.0240.00022.58
8.2.30.0090.01322.58
8.2.20.0330.00722.58
8.2.10.0310.00822.58
8.2.00.0330.00722.58
8.1.290.0280.01422.58
8.1.280.0280.01222.58
8.1.270.0320.00622.58
8.1.260.0340.01022.58
8.1.250.0380.00322.58
8.1.240.0400.00722.58
8.1.230.0270.01222.58
8.1.220.0350.00322.58
8.1.210.0280.01022.58
8.1.200.0320.00822.58
8.1.190.0320.00622.58
8.1.180.0340.00822.58
8.1.170.0270.01222.58
8.1.160.0310.01322.58
8.1.150.0350.00422.58
8.1.140.0310.01022.58
8.1.130.0410.00422.58
8.1.120.0390.00722.58
8.1.110.0290.00622.58
8.1.100.0270.01322.58
8.1.90.0170.00822.58
8.1.80.0290.00322.58
8.1.70.0310.00722.58
8.1.60.0310.01022.58
8.1.50.0250.01122.58
8.1.40.0340.00322.58
8.1.30.0370.00422.58
8.1.20.0360.00622.58
8.1.10.0370.00422.58
8.1.00.0310.01322.58

preferences:
139.7 ms | 1422 KiB | 7 Q