3v4l.org

run code in 500+ 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.70.0050.01116.71
8.5.60.0120.00716.96
8.5.50.0090.00716.55
8.5.30.0170.00618.16
8.5.20.0120.00916.69
8.5.00.0110.01016.66
8.4.220.0140.00819.63
8.4.210.0110.01119.41
8.4.180.0160.00921.62
8.4.170.0110.01021.66
8.4.90.0120.00819.74
8.3.310.0050.00518.50
8.3.300.0110.01120.21
8.3.180.0060.00316.94
8.3.50.0090.01016.78
8.2.310.0110.00818.22
5.6.400.0280.00916.61

preferences:
43.51 ms | 557 KiB | 5 Q