3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(int|null $var): void {} foo("123test");

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.20.0090.00817.33
8.5.10.0130.00516.66
8.4.170.0140.00820.38
8.4.160.0140.00720.23
8.4.90.0090.01118.03
8.3.300.0140.00618.49
8.3.290.0100.01018.37
8.3.180.0130.00716.80
8.3.50.0110.00816.89

preferences:
33.7 ms | 403 KiB | 5 Q