3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Vendor { public function make(); } class Samsung implements Vendor{ public function make() :string { return "This is Samsung product"; } } $vendor = new Samsung(); echo $vendor->make();
based on oqbe0
Output for 7.0.0 - 7.2.0
This is Samsung product
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/tVWfu on line 7
Process exited with code 255.