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'; ?>
Output for 5.3.0 - 5.3.25, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '<' in /in/97ci8 on line 2
Process exited with code 255.

preferences:
180.57 ms | 1395 KiB | 49 Q