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.0170.00618.16
8.5.20.0120.00916.69
8.5.00.0110.01016.66
8.4.180.0160.00921.62
8.4.170.0110.01021.66
8.4.90.0120.00819.74
8.3.300.0110.01120.21
8.3.180.0060.00316.94
8.3.50.0090.01016.78
5.6.400.0280.00916.61

preferences:
53.65 ms | 527 KiB | 5 Q