3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar($total = null) { } } class Baz extends Foo { public function bar() { } } (new Baz)->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.2.40.0040.01317.62
8.2.30.0120.00317.91
8.2.20.0040.00718.07
8.2.10.0120.00417.62
8.2.00.0110.00517.62
8.1.170.0100.00518.41
8.1.160.0140.00217.62
8.1.150.0080.00917.62
8.1.140.0070.00917.62
8.1.130.0120.00317.62
8.1.120.0120.00417.62
8.1.110.0130.00417.62
8.1.100.0130.00317.62
8.1.90.0140.00217.62
8.1.80.0140.00317.62
8.1.70.0150.00117.62
8.1.60.0130.00517.62
8.1.50.0140.00417.62
8.1.40.0120.00617.62
8.1.30.0120.00717.62
8.1.20.0130.00517.62
8.1.10.0120.00617.62
8.1.00.0110.00717.62
8.0.280.0100.00617.62
8.0.270.0080.00817.62
8.0.260.0120.00517.62
8.0.250.0150.00117.62
8.0.240.0140.00117.62
8.0.230.0090.00617.62
8.0.220.0130.00417.62
8.0.210.0110.00517.62
8.0.200.0100.00617.62
8.0.190.0090.00617.62
8.0.180.0150.00117.62
8.0.170.0110.00417.62
8.0.160.0110.00617.62
8.0.150.0140.00217.62
8.0.140.0090.00717.62
8.0.130.0120.00317.62
8.0.120.0110.00517.62
8.0.110.0100.00517.62
8.0.100.0100.00517.62
8.0.90.0110.00417.62
8.0.80.0120.00317.62
8.0.70.0080.00817.62
8.0.60.0110.00617.62
8.0.50.0120.00317.62
8.0.30.0110.00517.62
8.0.20.0090.00617.62
8.0.10.0100.00617.62

preferences:
132.24 ms | 995 KiB | 7 Q