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.4.220.0140.00719.49
8.4.210.0040.00619.53
8.4.90.0110.00819.61
8.3.310.0070.00218.28
8.3.180.0100.00518.35
8.3.50.0110.00818.62
8.2.310.0120.00718.08
8.0.140.0170.00616.90

preferences:
42.04 ms | 533 KiB | 5 Q