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!";
based on HInkF
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/qFYYq on line 4 Notice: A non well formed numeric value encountered in /in/qFYYq on line 4 I ate 5 oranges today!
Output for 4.3.0 - 7.0.14
I ate 5 oranges today!