3v4l.org

run code in 300+ PHP versions simultaneously
<?php <? define('OBJECT_COUNT', 9999); class Object { private static $world = array(); private static $maxGuid = 0; protected $_guid = null; public function __construct() { self::$world[$this->_guid = self::$maxGuid++] = $this; } public function __destruct() { unset(self::$world[$this->_guid]); } } for ($i = 0; $i < OBJECT_COUNT; ++$i) { new Object(); } // You probably won't see this because of the "zend_mm_heap corrupted" echo 'If you see this, try to increase OBJECT_COUNT to 100,000'; ?>

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)
5.4.150.0130.05718.86
5.4.140.0070.05316.40
5.4.130.0000.04716.26
5.4.120.0130.06016.44
5.4.110.0030.07716.39
5.4.100.0030.04716.53
5.4.90.0070.07016.40
5.4.80.0070.07316.32
5.4.70.0130.07016.45
5.4.60.0070.07316.47
5.4.50.0130.03016.63
5.4.40.0070.03316.27
5.4.30.0030.03316.44
5.4.20.0100.02716.40
5.4.10.0030.04016.27
5.4.00.0030.03715.80
5.3.250.0070.03314.70
5.3.240.0030.06014.54
5.3.230.0070.04314.52
5.3.220.0070.07314.46
5.3.210.0130.03314.51
5.3.200.0200.05714.50
5.3.190.0030.05314.50
5.3.180.0030.04314.65
5.3.170.0100.07314.50
5.3.160.0100.06714.49
5.3.150.0070.03714.44
5.3.140.0030.04014.48
5.3.130.0070.03314.48
5.3.120.0070.03714.33
5.3.110.0000.04014.48
5.3.100.0030.03714.13
5.3.90.0000.04013.90
5.3.80.0030.03313.96
5.3.70.0000.03713.83
5.3.60.0000.04013.98
5.3.50.0000.03713.88
5.3.40.0100.03313.87
5.3.30.0030.03313.73
5.3.20.0000.03713.51
5.3.10.0000.03713.67
5.3.00.0000.03713.42

preferences:
139.29 ms | 1394 KiB | 7 Q