3v4l.org

run code in 500+ PHP versions simultaneously
<?php function doPrint(string $value): void { echo $value . "\n"; } match (rand(0,2)) { 0 => doPrint('zero'), 1 => doPrint('one'), default => '', };

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

preferences:
49.2 ms | 480 KiB | 5 Q