3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); enum blub: string { case ONE = 'one'; case TWO = 'two'; } $array = [ blub::ONE => 'one', blub::TWO => 'two', ];

preferences:
25.15 ms | 486 KiB | 6 Q