3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump("hi" + 1 + 2 + 3); var_dump(in_array(0, array( 'foo', 'bar' ))); var_dump(in_array('0', array( 'foo', 'bar' )));
based on BRUBg
Output for 7.1.0
Warning: A non-numeric value encountered in /in/TXNQp on line 3 int(6) bool(true) bool(false)
Output for 4.3.0 - 7.0.14
int(6) bool(true) bool(false)