3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo <<<EOT My name is "$name". I am printing some $foo->foo. Now, I am printing some {$foo->bar[1]}. This should print a capital 'A': \x41 EOT; ?>
based on 5h16k
Output for 7.2.0
Notice: Undefined variable: name in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 3 Notice: Trying to get property 'foo' of non-object in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 4 Notice: Trying to get property 'bar' of non-object in /in/rT3JV on line 4 My name is "". I am printing some . Now, I am printing some . This should print a capital 'A': A
Output for 5.0.4 - 7.1.10
Notice: Undefined variable: name in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 3 Notice: Trying to get property of non-object in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 4 Notice: Trying to get property of non-object in /in/rT3JV on line 4 My name is "". I am printing some . Now, I am printing some . This should print a capital 'A': A
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: name in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 3 Notice: Trying to get property of non-object in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 4 Notice: Trying to get property of non-object in /in/rT3JV on line 4 My name is "". I am printing some . Now, I am printing some . This should print a capital 'A': A
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: name in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 4 My name is "". I am printing some . Now, I am printing some . This should print a capital 'A': A