@ 2015-10-27T14:50:37Z <?php
class Foo { public static $bar; }
$foo = new Foo;
$arr = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, $foo, $foo->bar, "\0");
// echo Foo::bar;
// foreach($arr as $val){ var_dump($val); }
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Notice: Accessing static property Foo::$bar as non static in /in/rBS9q on line 4
Warning: Undefined property: Foo::$bar in /in/rBS9q on line 4
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.16 - 7.3.31 , 7.4.0 - 7.4.33 Notice: Accessing static property Foo::$bar as non static in /in/rBS9q on line 4
Notice: Undefined property: Foo::$bar in /in/rBS9q on line 4
Output for 7.3.32 - 7.3.33 Output for 5.4.0 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 Strict Standards: Accessing static property Foo::$bar as non static in /in/rBS9q on line 4
Notice: Undefined property: Foo::$bar in /in/rBS9q on line 4
preferences:dark mode live preview
195.92 ms | 402 KiB | 228 Q