3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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";
based on CnkFb
Output for 7.0.0 - 7.2.0
Hello world Deprecated: Non-static method Core_Util_ShopNewEntityChangeList::sendToNewApi() should not be called statically in /in/F9gKk on line 19
Output for 5.3.21 - 5.6.28
Hello world Strict Standards: Non-static method Core_Util_ShopNewEntityChangeList::sendToNewApi() should not be called statically in /in/F9gKk on line 19