3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "hello"; $b = 2; echo $a - $b; echo $b - $a;
Output for 7.1.0
Warning: A non-numeric value encountered in /in/5Q5NI on line 4 -2 Warning: A non-numeric value encountered in /in/5Q5NI on line 5 2
Output for 4.3.0 - 7.0.14
-22