3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump("1000" + 10); var_dump("1000 ABC" + 10); var_dump("ABC 1000" + 10); var_dump("10 ABC 1000" + 10);
based on vP6u4
Output for 7.1.0
int(1010) Notice: A non well formed numeric value encountered in /in/gTT08 on line 4 int(1010) Warning: A non-numeric value encountered in /in/gTT08 on line 5 int(10) Notice: A non well formed numeric value encountered in /in/gTT08 on line 6 int(20)
Output for 4.3.0 - 7.0.14
int(1010) int(1010) int(10) int(20)