3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class BaseLib { abstract protected function process( $a ); } class MyLib extends BaseLib { //protected $a; protected string $a; public function run( string $a ) { $this->process( $a ); } protected function process( $a ) { $this->a = $a; } } class ThirdParty extends MyLib { public function run( string $a = null ) { $this->process( $a ); } } $third_party_code = new ThirdParty(); $third_party_code->run();

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.5.30.0100.00816.86
8.4.180.0290.01319.67

preferences:
40.66 ms | 497 KiB | 5 Q