3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name="Wanda"; print “W”+”anda”; print $name === "W"+"anda"; print $name == "W"+"anda";
Output for 7.2.0 - 7.3.0beta1
Warning: Use of undefined constant “W” - assumed '“W”' (this will throw an Error in a future version of PHP) in /in/a1r6Q on line 3 Warning: Use of undefined constant ”anda” - assumed '”anda”' (this will throw an Error in a future version of PHP) in /in/a1r6Q on line 3 Warning: A non-numeric value encountered in /in/a1r6Q on line 3 Warning: A non-numeric value encountered in /in/a1r6Q on line 3 0 Warning: A non-numeric value encountered in /in/a1r6Q on line 4 Warning: A non-numeric value encountered in /in/a1r6Q on line 4 Warning: A non-numeric value encountered in /in/a1r6Q on line 5 Warning: A non-numeric value encountered in /in/a1r6Q on line 5 1
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant “W” - assumed '“W”' in /in/a1r6Q on line 3 Notice: Use of undefined constant ”anda” - assumed '”anda”' in /in/a1r6Q on line 3 Warning: A non-numeric value encountered in /in/a1r6Q on line 3 Warning: A non-numeric value encountered in /in/a1r6Q on line 3 0 Warning: A non-numeric value encountered in /in/a1r6Q on line 4 Warning: A non-numeric value encountered in /in/a1r6Q on line 4 Warning: A non-numeric value encountered in /in/a1r6Q on line 5 Warning: A non-numeric value encountered in /in/a1r6Q on line 5 1
Output for 4.3.0 - 7.0.20
Notice: Use of undefined constant “W” - assumed '“W”' in /in/a1r6Q on line 3 Notice: Use of undefined constant ”anda” - assumed '”anda”' in /in/a1r6Q on line 3 01