3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $session->$key[$id];
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: session in /in/fXrL8 on line 2 Notice: Undefined variable: key in /in/fXrL8 on line 2 Notice: Trying to get property of non-object in /in/fXrL8 on line 2 Notice: Undefined variable: id in /in/fXrL8 on line 2
Output for 5.4.0 - 5.6.28
Notice: Undefined variable: key in /in/fXrL8 on line 2 Notice: Undefined variable: id in /in/fXrL8 on line 2 Notice: Undefined variable: session in /in/fXrL8 on line 2 Notice: Trying to get property of non-object in /in/fXrL8 on line 2
Output for 5.0.4 - 5.3.29
Notice: Undefined variable: id in /in/fXrL8 on line 2 Notice: Undefined variable: key in /in/fXrL8 on line 2 Notice: Undefined variable: session in /in/fXrL8 on line 2 Notice: Trying to get property of non-object in /in/fXrL8 on line 2
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: id in /in/fXrL8 on line 2 Notice: Undefined variable: key in /in/fXrL8 on line 2 Notice: Undefined variable: session in /in/fXrL8 on line 2 Notice: Trying to get property of non-object in /in/fXrL8 on line 2
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: id in /in/fXrL8 on line 2 Notice: Undefined variable: key in /in/fXrL8 on line 2 Notice: Undefined variable: session in /in/fXrL8 on line 2