<?php
class Foo {
public function bar() : int {
return '1';
}
}
print (new Foo)->bar();
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
- 1
- Output for 5.6.0 - 5.6.29
- Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/AHOW3 on line 5
Process exited with code 255.
preferences:
79.48 ms | 406 KiB | 5 Q