3v4l.org

run code in 500+ 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.70.0130.00617.09
8.5.60.0080.01017.01
8.5.50.0090.00818.57
8.5.30.0100.00816.86
8.4.220.0130.01019.54
8.4.210.0160.00519.76
8.4.180.0290.01319.67
8.4.90.0040.00518.20
8.3.310.0110.00918.41
8.3.180.0060.00216.84
8.3.50.0060.00216.90
8.2.310.0130.00718.10

preferences:
68.84 ms | 538 KiB | 5 Q