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(); if (is_null(Flextype::$instance)) { Flextype::$instance = new self; } return Flextype::$instance; } } var_export(Flextype::instance());

preferences:
25.33 ms | 404 KiB | 5 Q