3v4l.org

run code in 500+ PHP versions simultaneously
<?php class_alias('a', 'c'); use A as B; // duplicate hidden type function foo(array | iterable $b) {} // d8plicate type function foo2(a | b $b) {} // a and c are always considered distinct function foo3(a | c $b) {} // PHP is smarter than this poor usage of DNF function foo4((a & b) | (b & a) $b) {} ?>

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

preferences:
41.39 ms | 480 KiB | 4 Q