3v4l.org

run code in 150+ 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 5.0.4 - 5.6.28, 7.0.0 - 7.1.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 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 hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: name in /in/rT3JV on line 6 Notice: Undefined variable: foo in /in/rT3JV on line 3 Notice: Cannot access property on non-object in /in/rT3JV on line 3 Notice: Undefined variable: foo in /in/rT3JV on line 4 Notice: Cannot access property on 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