3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "3hello"; $b = "2"; $c = "hello"; echo $a + $b; echo "\n"; echo $b + $a; echo "\n";echo "\n"; echo $c + $b; echo "\n"; echo $b + $c;
based on JMCPG
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/IHlOs on line 5 5 Notice: A non well formed numeric value encountered in /in/IHlOs on line 7 5 Warning: A non-numeric value encountered in /in/IHlOs on line 9 2 Warning: A non-numeric value encountered in /in/IHlOs on line 11 2
Output for 4.3.0 - 7.0.14
5 5 2 2