3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ContainsStmts {} // BC break patch class_alias(ContainsStmts::class, StmtsAwareInterface::class); class SomeNode implements ContainsStmts {} $obj = new SomeNode(); // old should keep working var_dump($obj instanceof StmtsAwareInterface); // new var_dump($obj instanceof ContainsStmts);
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
bool(true) bool(true)

preferences:
55.45 ms | 406 KiB | 5 Q