3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { protected $foo = 'foo'; public string $bar { get { $return = $this->foo; if (Fiber::getCurrent()) { Fiber::suspend(); } print ($return); return $return; } } } $foo = new Foo(); $fiber = new Fiber(function () use ($foo) { $foo->bar; }); $value = $fiber->start(); $foo->bar; $fiber->resume('test');

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.0100.00716.54
8.3.50.0100.00816.86

preferences:
50.5 ms | 492 KiB | 4 Q