3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "1234"; var_dump("/"+$str); var_dump("/"+strval($str));
Output for 7.1.0 - 7.1.10
Warning: A non-numeric value encountered in /in/K9mSL on line 5 int(1234) Warning: A non-numeric value encountered in /in/K9mSL on line 7 int(1234)
Output for 4.3.0 - 7.0.20
int(1234) int(1234)