3v4l.org

run code in 300+ PHP versions simultaneously
<?hh // Hack functions are annotated with types. function my_negation(bool $x): bool { return !$x; } // FIXME: annotate this function parameter // and return with the type 'int'. function add_one(int $x): int { return $x+1; } echo add_one(3);

This is an error 404

There are `0` results


preferences:
139.15 ms | 1399 KiB | 7 Q