3v4l.org

run code in 500+ PHP versions simultaneously
<?php class PhpstanOptions { private array $options = []; public function memoryLimit(string $limit) { $this->options['memory-limit'] = $limit; return $this; } public function level(string $level) { $this->options['level'] = $level; return $this; } } $options = new PhpstanOptions()->memoryLimit('1G')->level('5'); var_dump($options);

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.0140.00518.43
8.3.50.0060.00216.93

preferences:
53.19 ms | 493 KiB | 4 Q