3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { public $p = 3; function __construct() { $this->p = 4; } } //Cannot create Closure for new expression //$c = new X(...); $x = new x(); echo $x->p; $x->p = 5; echo $x->p; $f = $x->__construct(...); $f(); echo $x->p;

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.70.0070.01016.70
8.5.60.0050.00316.70
8.5.50.0120.00516.73
8.5.30.0100.01016.79
8.0.140.0170.00616.90

preferences:
30.22 ms | 496 KiB | 5 Q