3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php session_start(); class Test { } $o = new Test; echo $o->t1; var_dump($o);
based on 0X6WG
Output for 5.2.6 - 7.1.0
Notice: Undefined property: Test::$t1 in /in/Yc067 on line 6 object(Test)#1 (0) { }
Output for 5.2.3 - 5.2.5
Notice: Undefined property: Test::$t1 in /in/Yc067 on line 6 object(Test)#1 (0) { }
Output for 5.0.0 - 5.2.2
Warning: session_start(): Cannot send session cookie - headers already sent in /in/Yc067 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/Yc067:2) in /in/Yc067 on line 2 Notice: Undefined property: Test::$t1 in /in/Yc067 on line 6 object(Test)#1 (0) { }
Output for 4.3.2 - 4.4.9
Warning: session_start(): Cannot send session cookie - headers already sent in /in/Yc067 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/Yc067:2) in /in/Yc067 on line 2 Notice: Undefined property: t1 in /in/Yc067 on line 6 object(test)(0) { }
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/Yc067 on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/Yc067:2) in /in/Yc067 on line 2 Notice: Undefined property: t1 in /in/Yc067 on line 6 object(test)(0) { }