3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tools { public static $notify; public function test() { var_dump(self::$notify, (boolean)self::$notify, !self::$notify); } } $debug = true; if ($debug) { Tools::$notify = false; } $tools = new Tools; $tools->test();

preferences:
52.46 ms | 402 KiB | 5 Q