3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test1 = "2 appels"; $test2 = "3 peren"; var_dump($test1 +1); var_dump($test1 + $test2);
Output for 7.1.0RC3 - 7.1.0RC5
Notice: A non well formed numeric value encountered in /in/cQ3NS on line 5 int(3) Notice: A non well formed numeric value encountered in /in/cQ3NS on line 6 Notice: A non well formed numeric value encountered in /in/cQ3NS on line 6 int(5)
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.6
int(3) int(5)