3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Core_Util_ShopNewEntityChangeList { private static $things = array(); public function sendToNewApi() { foreach (self::$things as $thing) { echo $thing; } } } function notifyNewApi() { Core_Util_ShopNewEntityChangeList::sendToNewApi(); } register_shutdown_function('notifyNewApi'); echo "Hello world";

preferences:
57.49 ms | 402 KiB | 5 Q