3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
Output for 8.3.0 - 8.3.4
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
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
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.

preferences:
153.94 ms | 401 KiB | 186 Q