3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { PRIVATE(set) string $bar1 = ''; public private(SET) string $bar2 = ''; private(set) public string $bar3 = ''; public function __construct( public protected(SET) string $bar4 = '' ) {} } $foo = new Foo(); var_dump($foo); $foo->bar4 = 'test';

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.50.0090.00817.00

preferences:
44.5 ms | 489 KiB | 4 Q