3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class HelloWorld { /** @var int[][] */ public readonly array $a; public function doFoo(): void { unset($this->a[5]); } } $hw = new HelloWorld(); $hw->doFoo();

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.120.0110.00920.46
8.4.110.0110.00922.59
8.4.100.0100.00318.80
8.4.90.0170.00318.85
8.4.80.0030.00520.38
8.4.70.0050.00317.95
8.4.60.0110.00818.73
8.4.50.0140.00719.66
8.4.40.0280.00917.34
8.4.30.0090.01119.28
8.3.250.0090.00918.82
8.3.240.0100.00919.09
8.3.230.0150.00416.85
8.3.220.0080.00319.12
8.3.210.0100.00818.43
8.3.200.0040.00516.63
8.3.190.0080.01216.85
8.3.180.0120.00716.59
8.3.170.0060.00218.29
8.3.160.0080.00818.29
8.3.50.0080.01016.59
8.2.290.0110.00820.50
8.2.280.0140.00618.25
8.1.320.0080.01016.25

preferences:
25.46 ms | 403 KiB | 5 Q