3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class Example1 { public string $foo = 'UPPERCASE' { set => strtolower($value); } } class Example2 { public function __construct( public string $foo = 'UPPERCASE' { set => strtolower($value); } ) { } } echo new Example1()->foo; echo new Example2()->foo;

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.10.0090.00918.40
8.4.160.0300.01019.29
8.4.150.0230.01219.90

preferences:
157.33 ms | 1100 KiB | 7 Q