3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(‘1’+ 2);
based on TEr71
Output for 7.2.0 - 7.3.0alpha1
Warning: Use of undefined constant ‘1’ - assumed '‘1’' (this will throw an Error in a future version of PHP) in /in/YR35C on line 3 Warning: A non-numeric value encountered in /in/YR35C on line 3 int(2)
Output for 7.1.0 - 7.1.17
Notice: Use of undefined constant ‘1’ - assumed '‘1’' in /in/YR35C on line 3 Warning: A non-numeric value encountered in /in/YR35C on line 3 int(2)
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30
Notice: Use of undefined constant ‘1’ - assumed '‘1’' in /in/YR35C on line 3 int(2)
Output for hhvm-3.22.0
Notice: Use of undefined constant ‘1’ - assumed '‘1’' in /in/YR35C on line -1 int(2)