<?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/rLm1h on line 7
Warning: Attempt to read property "foo" on null in /in/rLm1h on line 7
Warning: Undefined variable $foo in /in/rLm1h on line 8
Warning: Attempt to read property "bar" on null in /in/rLm1h on line 8
Warning: Trying to access array offset on null in /in/rLm1h 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/rLm1h on line 7
Warning: Attempt to read property "foo" on null in /in/rLm1h on line 7
Warning: Undefined variable $foo in /in/rLm1h on line 8
Warning: Attempt to read property "bar" on null in /in/rLm1h on line 8
Warning: Trying to access array offset on value of type null in /in/rLm1h 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.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: Undefined variable: foo in /in/rLm1h on line 7
Notice: Trying to get property 'foo' of non-object in /in/rLm1h on line 7
Notice: Undefined variable: foo in /in/rLm1h on line 8
Notice: Trying to get property 'bar' of non-object in /in/rLm1h on line 8
Notice: Trying to access array offset on value of type null in /in/rLm1h on line 8
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: Undefined variable: foo in /in/rLm1h on line 7
Notice: Trying to get property 'foo' of non-object in /in/rLm1h on line 7
Notice: Undefined variable: foo in /in/rLm1h on line 8
Notice: Trying to get property 'bar' of non-object in /in/rLm1h on line 8
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A
Notice: Undefined variable: foo in /in/rLm1h on line 7
Notice: Trying to get property of non-object in /in/rLm1h on line 7
Notice: Undefined variable: foo in /in/rLm1h on line 8
Notice: Trying to get property of non-object in /in/rLm1h on line 8
Mon nom est "MyName". J'affiche quelques .
Maintenant, j'affiche quelques .
Et ceci devrait afficher un 'A' majuscule : A