3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(verify(12.4444)); public function verify($number) { if (!$number || !is_numeric($number)) { return true; } list(, $decimal) = explode('.', $number); if (strlen($decimal) != 4) { return false; } return true; }
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/4YLk0 on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PUBLIC in /in/4YLk0 on line 8
Process exited with code 255.