3v4l.org

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

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.0040.01116.75
8.3.50.0090.00721.21
8.3.40.0150.00318.83
8.3.30.0070.00718.72
8.3.20.0040.00420.16
8.3.10.0080.00021.64
8.3.00.0020.00521.94
8.2.180.0070.00718.54
8.2.170.0070.00722.96
8.2.160.0050.00820.52
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0080.00021.19
8.2.120.0050.00326.35
8.2.110.0060.00322.22
8.2.100.0030.00618.72
8.1.280.0110.00725.92
8.1.270.0070.00722.22
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00318.34
8.1.230.0090.00018.48
7.0.20.0270.06320.24
7.0.10.0130.06020.09
7.0.00.0100.05320.09
5.6.170.0400.03720.45
5.6.160.0070.05020.57
5.6.150.0030.04018.23
5.6.140.0170.07018.30
5.6.130.0070.08018.15
5.6.120.0000.04321.10
5.6.110.0030.08320.97
5.6.100.0000.05321.13
5.6.90.0130.07320.97
5.6.80.0130.07320.40
5.5.310.0170.04020.36
5.5.300.0070.04018.05
5.5.290.0070.06017.97
5.5.280.0170.07320.90
5.5.270.0070.09020.77
5.5.260.0030.07020.68
5.5.250.0030.08320.75
5.5.240.0230.06720.33

preferences:
31.04 ms | 401 KiB | 5 Q