3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait A { private $whatever; } class B { use A; private $whatever; } trait C { private string $whatever = ''; } class D { use C; private $whatever; }

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.80.0100.01018.61
8.5.70.0120.00816.68
8.5.10.0070.01016.68
8.4.230.0260.00919.20
8.4.220.0280.00619.15
8.4.90.0190.00217.59
8.3.320.0160.00518.38
8.3.180.0200.00316.73
8.3.50.0160.01018.59
8.2.320.0360.00217.84

preferences:
42.87 ms | 527 KiB | 5 Q