3v4l.org

run code in 500+ PHP versions simultaneously
<?php function run(string $name) { return $name ?? 'tom'; } var_dump(run('')); function run2(string $name) { return $name ?: 'tom'; } var_dump(run2(''));

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.0130.00816.67
8.4.90.0050.00317.62
8.3.180.0090.00916.66
8.3.50.0110.00716.65

preferences:
49.53 ms | 500 KiB | 5 Q