3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num1 = '2oranges'; $num2 = '3oranges'; $sum = $num1 + $num2; echo "I ate {$sum} oranges today!"; $sumthing = $num1 + 5; echo "I ate {$sumthing} yesterday.";
based on qFYYq
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/7WA5J on line 4 Notice: A non well formed numeric value encountered in /in/7WA5J on line 4 I ate 5 oranges today! Notice: A non well formed numeric value encountered in /in/7WA5J on line 6 I ate 7 yesterday.
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
I ate 5 oranges today!I ate 7 yesterday.