3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s1 = 'toto'; $s2 = 'tata'; var_dump($s1 + $s2); var_dump($s1.$s2); var_dump("{$s1}{$s2}"); var_dump(implode("", array($s1, $s2)));
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/ECa8p on line 6 Warning: A non-numeric value encountered in /in/ECa8p on line 6 int(0) string(8) "tototata" string(8) "tototata" string(8) "tototata"
Output for 5.3.18 - 7.0.20
int(0) string(8) "tototata" string(8) "tototata" string(8) "tototata"