3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Flextype { protected static $instance = null; public static function instance() { return !isset(self::$instance) and self::$instance = new Flextype(); } } var_export(Flextype::instance());

preferences:
31.34 ms | 404 KiB | 5 Q