3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class SecuPress_Scan { protected static $name = ''; public function __construct() {} public static function foo() { echo self::$name; } } class SecuPress_Scan_Ver_Check extends SecuPress_Scan { protected static $name = 'ver_check'; public function __construct() { self::foo(); } } new SecuPress_Scan_Ver_Check;
based on X3Yi0
Output for 5.4.0 - 7.2.6