3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.25
Parse error: syntax error, unexpected ';' in /in/TZBof on line 20
Process exited with code 255.

preferences:
162.56 ms | 1387 KiB | 62 Q