<?php
$name = 'MyName';
echo <<<EOT
Mon nom est "$name". J'affiche quelques $foo->foo.
Maintenant, j'affiche quelques {$foo->bar[1]}.
Et ceci devrait afficher un 'A' majuscule : \x41
EOT;
Warning: Undefined variable $foo in /in/sbIuO on line 7
Warning: Attempt to read property "foo" on null in /in/sbIuO on line 7
Warning: Undefined variable $foo in /in/sbIuO on line 8
Warning: Attempt to read property "bar" on null in /in/sbIuO on line 8
Warning: Trying to access array offset on null in /in/sbIuO on line 8
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Warning: Undefined variable $foo in /in/sbIuO on line 7
Warning: Attempt to read property "foo" on null in /in/sbIuO on line 7
Warning: Undefined variable $foo in /in/sbIuO on line 8
Warning: Attempt to read property "bar" on null in /in/sbIuO on line 8
Warning: Trying to access array offset on value of type null in /in/sbIuO on line 8
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Output for 7.4.3 - 7.4.33
Notice: Undefined variable: foo in /in/sbIuO on line 7
Notice: Trying to get property 'foo' of non-object in /in/sbIuO on line 7
Notice: Undefined variable: foo in /in/sbIuO on line 8
Notice: Trying to get property 'bar' of non-object in /in/sbIuO on line 8
Notice: Trying to access array offset on value of type null in /in/sbIuO on line 8
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Output for 7.3.32 - 7.3.33
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Output for 7.3.16 - 7.3.31
Notice: Undefined variable: foo in /in/sbIuO on line 7
Notice: Trying to get property 'foo' of non-object in /in/sbIuO on line 7
Notice: Undefined variable: foo in /in/sbIuO on line 8
Notice: Trying to get property 'bar' of non-object in /in/sbIuO on line 8
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Output for 5.4.0 - 5.4.21, 7.2.29 - 7.2.33
Parse error: syntax error, unexpected end of file in /in/sbIuO on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/sbIuO on line 10
Process exited with code 255.