3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { function foo(): A; } class X implements i { function foo() : A { // return type is not useful here throw new Exception(''); // PHP complains that a value must be returned return; // PHP won't complain until execution time return 1; } }

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.60.0080.01218.54

preferences:
55.79 ms | 480 KiB | 4 Q