3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "3hello"; $b = 2; $c = "hello"; echo $a - $b; echo "\n"; echo $b - $a; echo "\n";echo "\n"; echo $c - $b; echo "\n"; echo $b - $c;
based on O2nO3
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/MVfTf on line 5 1 Notice: A non well formed numeric value encountered in /in/MVfTf on line 7 -1 Warning: A non-numeric value encountered in /in/MVfTf on line 9 -2 Warning: A non-numeric value encountered in /in/MVfTf on line 11 2
Output for 4.3.0 - 7.0.14
1 -1 -2 2