3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class SomeAction { public function __construct( public ?string $powerOfAttorneyDate = null { set => $value === '' ? null : $value; }, ) { } } $data = new SomeAction('2025-01-01'); echo "powerOfAttorneyDate is included when printing the obj:\n"; echo print_r($data, true); echo "powerOfAttorneyDate is missing (bug) when using get_object_vars:\n"; echo print_r(\get_object_vars($data), true); echo "powerOfAttorneyDate is included when using foreach on the object:\n"; foreach ($data as $name => $value) { echo $name . ' => ' . $value; }

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.4.60.0350.01117.77
8.4.50.0370.01117.40
8.4.40.0300.00717.57

preferences:
139.65 ms | 997 KiB | 7 Q