3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $prop = 1; function __construct($i=null){ if (! $i){ $i = 10; $this = new self(10); } $this->prop = $i; } } $b = new A(); var_dump($b);

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)
7.1.00.0330.01014.50

preferences:
164.11 ms | 1394 KiB | 7 Q