3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { private array $code = []; function foo() { return (string) $this<-code; } } var_dump((new X)->foo());

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.0180.00618.59
8.5.00.0110.01016.66
8.3.300.0110.01120.21
5.6.400.0280.00916.61

preferences:
36.42 ms | 403 KiB | 5 Q