3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A {} class B {} class_alias("A", "X"); class_alias("B", "X");
based on LUkFM
Output for 7.0.0 - 7.2.0
Warning: Cannot declare class X, because the name is already in use in /in/286mL on line 8
Output for 5.3.20 - 5.6.28
Warning: Cannot redeclare class X in /in/286mL on line 8