3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Example { public int $nextNumber { get { $this->nextNumber ??= 0; return $this->nextNumber++; } set => throw new Error('Property Example::$nextNumber is read-only'); } } $foo = new Example; var_dump($foo->nextNumber, $foo->nextNumber, $foo->nextNumber); $foo->nextNumber = 42;

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

preferences:
41.55 ms | 493 KiB | 4 Q