3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct( public string $bar { set (string $s) { $this->bar = strtoupper($s); } } ) { } } $foo = new Foo("bar"); echo $foo->bar . "\n"; $foo->bar = "baz"; echo $foo->bar . "\n";

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.30.0130.00918.29
8.3.50.0040.00416.90

preferences:
47.74 ms | 492 KiB | 4 Q