3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} function foo() { return new class { public static function foo() { return new class extends parent {}; } }; } var_dump(foo()::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)
7.0.00.0070.07720.05
5.6.160.0170.08020.58
5.6.150.0100.05718.25
5.6.140.0030.03718.27
5.6.130.0030.07318.27
5.6.120.0070.08321.12
5.6.110.0070.08721.11
5.6.100.0400.06321.01
5.6.90.0100.04020.97
5.6.80.0130.07720.47
5.5.300.0070.07717.94
5.5.290.0070.05018.01
5.5.280.0000.04320.77
5.5.270.0100.07720.90
5.5.260.0070.07020.79
5.5.250.0070.07320.68
5.5.240.0170.06320.13

preferences:
135.04 ms | 1398 KiB | 7 Q