3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump("a" - "b"); var_dump("2a" - "b"); var_dump("a" - "1b"); var_dump("2a" - "1b");
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/t7pvD on line 2 Warning: A non-numeric value encountered in /in/t7pvD on line 2 int(0) Notice: A non well formed numeric value encountered in /in/t7pvD on line 3 Warning: A non-numeric value encountered in /in/t7pvD on line 3 int(2) Warning: A non-numeric value encountered in /in/t7pvD on line 4 Notice: A non well formed numeric value encountered in /in/t7pvD on line 4 int(-1) Notice: A non well formed numeric value encountered in /in/t7pvD on line 5 Notice: A non well formed numeric value encountered in /in/t7pvD on line 5 int(1)
Output for 5.3.17 - 7.0.20
int(0) int(2) int(-1) int(1)