3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo() { $result = 1; foreach (func_get_args() as $arg) { if (is_numeric($arg)) { $result *= $arg; } } return $result; } print foo( 1, "2", "0x03", 4, 'five'); print "\n";
Output for 7.0.0 - 7.1.0
8
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
24