3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1=$a2='pre'; $b1=$b2='suf'; $a1+=$b1; $a2=+$b1; print_r(array($a1,$a2));
Output for 7.1.0 - 7.2.6
Warning: A non-numeric value encountered in /in/Zo8vL on line 6 Warning: A non-numeric value encountered in /in/Zo8vL on line 6 Warning: A non-numeric value encountered in /in/Zo8vL on line 7 Array ( [0] => 0 [1] => 0 )
Output for 5.3.20 - 7.0.20
Array ( [0] => 0 [1] => 0 )