3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $area_ar = array_flip([ 'The Town of Cameron' => '1', 'The Deep Below Aston' => '2', 'The Town of Aston' => '3', 'Pentagram Quest' => '4', 'The Sewers' => '5', 'Earth Underground' => '6', 'Fire Pents' => '7', 'Fire Underground' => '8', 'Ice Pents' => '9', 'Ice Underground' => '10', 'Ice Palace' => '11', 'The Mines' => '12', 'Catacombs' => '13', 'Random Dungeon' => '14', 'The Swamp' => '15', 'The Forest' => '16', 'Exkordon' => '17', 'Bones and Towers' => '18', 'Nomad Plains' => '19', 'Live Quest Area' => '20', 'Test Pents' => '21', 'The Labyrinth' => '22', 'Ice Army Caves' => '23', 'More Ice Army Caves' => '24', 'Rodneys Warped World' => '25', 'Below Aston 2' => '26', 'Brannington Forest' => '28', 'Brannington Town' => '29', 'Clan Spawners' => '30', 'Grimroot' => '31', 'Jobbington' => '32', 'Teufelheim' => '33', 'Caligar' => '34', 'Arkhata' => '37', ]); echo $area_ar;
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/iQkFA on line 38 Array
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/iQkFA on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/iQkFA on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/iQkFA on line 2
Process exited with code 255.