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"; print $name != False and name != True; print $name !== False and name !== True;
Output for 7.2.0
Warning: A non-numeric value encountered in /in/28Tn0 on line 3 Warning: A non-numeric value encountered in /in/28Tn0 on line 3 0 Warning: A non-numeric value encountered in /in/28Tn0 on line 4 Warning: A non-numeric value encountered in /in/28Tn0 on line 4 Warning: A non-numeric value encountered in /in/28Tn0 on line 5 Warning: A non-numeric value encountered in /in/28Tn0 on line 5 11 Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/28Tn0 on line 6 1 Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/28Tn0 on line 7
Output for 7.1.0 - 7.1.10
Warning: A non-numeric value encountered in /in/28Tn0 on line 3 Warning: A non-numeric value encountered in /in/28Tn0 on line 3 0 Warning: A non-numeric value encountered in /in/28Tn0 on line 4 Warning: A non-numeric value encountered in /in/28Tn0 on line 4 Warning: A non-numeric value encountered in /in/28Tn0 on line 5 Warning: A non-numeric value encountered in /in/28Tn0 on line 5 11 Notice: Use of undefined constant name - assumed 'name' in /in/28Tn0 on line 6 1 Notice: Use of undefined constant name - assumed 'name' in /in/28Tn0 on line 7
Output for 4.3.0 - 7.0.20
011 Notice: Use of undefined constant name - assumed 'name' in /in/28Tn0 on line 6 1 Notice: Use of undefined constant name - assumed 'name' in /in/28Tn0 on line 7