3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $baz = array('foo', 'bar', 'baz', 'quux'); echo $foo->$bar . "\n";
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: foo in /in/icM6o on line 3 Notice: Undefined variable: bar in /in/icM6o on line 3 Notice: Trying to get property of non-object in /in/icM6o on line 3
Output for 5.0.4 - 5.0.5, 5.2.9 - 5.2.17
Notice: Undefined variable: bar in /in/icM6o on line 3 Notice: Undefined variable: foo in /in/icM6o on line 3 Notice: Trying to get property of non-object in /in/icM6o on line 3
Output for 5.1.0 - 5.2.8
Notice: Undefined variable: foo in /in/icM6o on line 3 Notice: Trying to get property of non-object in /in/icM6o on line 3
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: bar in /in/icM6o on line 3 Notice: Undefined variable: foo in /in/icM6o on line 3 Notice: Trying to get property of non-object in /in/icM6o on line 3
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: bar in /in/icM6o on line 3 Notice: Undefined variable: foo in /in/icM6o on line 3