3v4l.org

run code in 500+ PHP versions simultaneously
<?php enum E { case A = 'z'; case B = 'z'; }
Output for 8.2.0 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.8
Fatal error: Case A of non-backed enum E must not have a value in /in/1bOLV on line 4
Process exited with code 255.

preferences:
15.26 ms | 1164 KiB | 5 Q