3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_numeric("32.00")); class foo { function get_flags($uid = NULL, $set=TRUE) { $flags = $this->get_metadata('flags', $uid); if($flags == FALSE){ return FALSE; } if($set){$this->flags = $flags;} return $flags; } function get_metadata($field, $uid) { print $field.$uid; } } var_dump($foo->get_flags(1, false);
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ';' in /in/TZBof on line 20
Process exited with code 255.