3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "hello"; $b = 2; echo $a - $b; echo "\n"; echo $b - $a;
based on 5Q5NI
Output for 7.1.0
Warning: A non-numeric value encountered in /in/VOONi on line 4 -2 Warning: A non-numeric value encountered in /in/VOONi on line 6 2
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
-2 2