<?php if (version_compare(phpversion(), '8.2.0', '<')) { interface Greet { function speak(); } class Hello implements Greet { function speak() { return 'world'; } } } else { interface Greet { function speak(): string; } class Hello implements Greet { function speak(): string { return 'world'; } } } echo (new Hello())->speak();
You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).