3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace DetoxMe\Enums; class DoshicTypes { const VATHA = 'vatha'; const KAPTHA = 'kaptha'; const PITHA = 'pitha'; const ALL = [1 => self::VATHA, self::KAPTHA, self::PITHA]; }
Output for 5.6.7 - 7.2.0
Output for 5.4.0 - 5.5.35
Fatal error: Arrays are not allowed in class constants in /in/MjmsW on line 15
Process exited with code 255.