3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface WithStaticMethod { static function foo(); } class Foo implements WithStaticMethod { public static function foo() { return __CLASS__; } } $fooClass = Foo::class; echo $fooClass::$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.3.70.0070.00718.58
8.3.60.0000.01416.75
8.3.50.0080.01221.20
8.3.40.0030.01218.89
8.3.30.0070.01118.83
8.3.20.0040.00420.21
8.3.10.0040.00423.56
8.3.00.0070.00723.70
8.2.180.0070.00718.61
8.2.170.0170.00322.96
8.2.160.0110.00420.47
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0030.00519.64
8.2.120.0070.00026.35
8.2.110.0050.00522.09
8.2.100.0090.00018.85
8.1.280.0150.00325.92
8.1.270.0060.00322.25
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0060.00318.43
8.1.230.0100.00018.49
7.0.00.0070.05320.07
5.6.160.0070.05020.57
5.6.150.0000.04318.27
5.6.140.0000.04318.24
5.6.130.0070.07018.18
5.6.120.0000.04321.02
5.6.110.0030.09320.89
5.6.100.0070.06020.98
5.6.90.0100.05720.99
5.6.80.0070.07320.53
5.5.300.0070.05317.95
5.5.290.0030.05318.08
5.5.280.0030.04020.63
5.5.270.0030.06020.65
5.5.260.0030.07320.80
5.5.250.0130.04720.69
5.5.240.0170.06020.35

preferences:
47.44 ms | 401 KiB | 5 Q