3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MemoryLeak { public function __construct() { $this->things[] = $this; } public function __destruct() { $fusion->things[] = null; } } for ($i = 0; $i < 100000; ++$i) { $obj = new MemoryLeak(); }

Abusive script

This script was stopped while abusing our resources

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.10.0040.00419.68
8.3.140.0060.00916.82
8.3.130.0070.01118.41
8.3.120.0040.00419.12
8.3.110.0180.00016.48
8.3.100.0160.00516.57
8.3.50.0180.00616.38
8.2.250.0060.00318.49
8.2.240.0090.00016.80
8.2.230.0220.00016.34
8.2.220.0260.00916.74
8.1.300.0070.76139.50

preferences:
34.4 ms | 403 KiB | 5 Q