3v4l.org

run code in 500+ PHP versions simultaneously
<?php class PhpstanOptions { private array $options = []; public function memoryLimit(string $limit): self { $this->options['memory-limit'] = $limit; return $this; } public function level(string $level): self { $this->options['level'] = $level; return $this; } public function noProgress(bool $progress): self { $this->options['no-progress'] = $progress; return $this; } public function debug(string $debug): self { $this->options['debug'] = $debug; return $this; } public function buildCliCommand(): string { $cmd = ''; foreach($this->options as $option => $val) { $cmd .= sprintf('--%s=%s ', $option, $val); } return $cmd; } } $options = new PhpstanOptions()->memoryLimit('1G')->level('5'); var_dump($options); echo $options->buildCliCommand();

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.4.40.0290.00917.38
8.3.50.0100.00616.74

preferences:
52.14 ms | 493 KiB | 4 Q