3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = 'foo' + 0; assert(is_int($var)); var_dump($var);
based on nL6NB
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/v06ka on line 3 int(0)
Output for 5.3.19 - 7.0.20
int(0)