3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { private function foo() { echo __METHOD__; } } class Bar extends Foo { public static function bar() { $bar = new Bar(); $bar->foo(); } } class Baz { public static function baz() { echo __METHOD__; } } Baz::baz();

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.3.60.0070.00716.25
8.3.50.0090.00616.37
8.3.40.0120.00618.59
8.3.30.0120.00318.45
8.3.20.0030.00520.31
8.3.10.0050.00321.96
8.3.00.0070.00021.72
8.2.180.0110.00418.16
8.2.170.0040.01122.96
8.2.160.0110.00420.57
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0090.00920.77
8.2.120.0070.00026.35
8.2.110.0030.00722.24
8.2.100.0000.00918.63
8.1.280.0040.01125.92
8.1.270.0060.01222.02
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0050.00518.54
8.1.230.0090.00018.47
7.0.20.0230.05020.12
7.0.10.0070.08720.10
7.0.00.0000.07020.22
5.6.170.0270.07020.50
5.6.160.0100.07720.47
5.6.150.0070.03718.21
5.6.140.0000.09018.29
5.6.130.0070.04318.18
5.6.120.0070.04021.12
5.6.110.0030.08720.89
5.6.100.0070.07020.95
5.6.90.0070.08020.95
5.6.80.0100.05720.50
5.5.310.0200.03720.29
5.5.300.0170.07018.08
5.5.290.0030.07017.96
5.5.280.0170.07720.73
5.5.270.0100.08320.96
5.5.260.0030.07020.81
5.5.250.0070.07020.66
5.5.240.0130.05720.23

preferences:
35.44 ms | 401 KiB | 5 Q