3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newData = [ "time_last_updated" => time(), "items" => [ 'Shrimp' => [ 'id' => 315, 'long_description' => 'Requires level 1 Cooking and Fishing. Caught via small net fishing.', ], 'Cooked chicken' => [ 'id' => 2140, 'long_description' => 'Requires level 1 Cooking. Raw chicken is obtained by killing Chickens.', ],'Cooked meat' => [ 'id' => 2142, 'long_description' => 'Requires level 1 Cooking. Raw meat can be obtained by killing Cows or Giant rats.', ],'Sardine' => [ 'id' => 325, 'long_description' => 'Requires level 1 cooking and level 5 Fishing. Caught via bait fishing.', ],'Bread' =>[ 'id' => 2309, 'long_description' => 'Baked by players, see Cooking skill. Requires level 1 Cooking.', ],'Herring' => [ 'id' => 347, 'long_description' => 'Requires level 5 Cooking and level 10 Fishing. Caught via bait fishing.', ],'Guthix Rest' => [ 'id' => 4417, 'long_description' => 'Requires level 18 Herblore and the completion of One Small Favour. Takes 4 doeses to consume. Each dose heals 5 hitpoints, reduces venom to poison, or reduce poison damage by 1, restors 5% energy. Can boost player above max HP if at full HP', ],'Mackerel' => [ 'id' => 355, 'long_description' => 'Requires level 10 Cooking and level 16 Fishing. Caught via big net fishing.', ],'Choc-ice' => [ 'id' => 6794, 'long_description' => 'Can be bought from Rokuh in Nardah.', ],'Trout' => [ 'id' => 333, 'long_description' => 'Requires level 15 Cooking and level 20 Fishing. Caught via fly fishing.', ],'Cod' => [ 'id' => 339, 'long_description' => 'Requires level 18 Cooking and level 23 Fishing. Caught via big net fishing.', ],'Pike' => [ 'id' => 351, 'long_description' => 'Requires level 20 Cooking and level 25 Fishing. Caught via bait fishing.', ],'Roast beast meat' => [ 'id' => 9988, 'long_description' => 'Requires level 21 Cooking. An Iron spit must be used along with a fire to cook it.', ],'Pineapple punch' => [ 'id' => 2048, 'long_description' => 'Requires level 8 Cooking. See Gnome cooking on how to make it.', ],'Salmon' => [ 'id' => 329, 'long_description' => 'Requires level 30 Fishing and level 25 Cooking. Caught via fly fishing.', ],'Tuna' => [ 'id' => 359, 'long_description' => 'Requires level 35 Fishing and level 30 Cooking. Caught by using a Harpoon.', ],'Jug of wine' => [ 'id' => 1993, 'long_description' => 'Requires level 35 Cooking. Upon consumption, Attack is temporarily decreased by a few points and leaves a jug behind.', ],'Rainbow fish' => [ 'id' => 10136, 'long_description' => 'Requires level 38 Fishing and level 35 Cooking. Caught via fly fishing by using Stripy feathers.', ],'Stew' => [ 'id' => 2003, 'long_description' => 'Requires level 25 Cooking. Once eaten, the bowl remains in the inventory.', ],'Cake' => [ 'id' => 1891, 'long_description' => 'Baked by players, see Cooking skill. Can be stolen from East Ardougne and Keldagrim Takes 3 bites to eat completely (each bite heals 4 hitpoints).', ],'Meat pie' => [ 'id' => 2327, 'long_description' => 'Baked by players, see Cooking skill. Requires level 20 Cooking. Heals 6 hitpoints per bite.', ],'Lobster' => [ 'id' => 379, 'long_description' => 'Highly popular among players. Requires level 40 Fishing and level 40 Cooking. Caught by using a Lobster pot.', ],'Bass' => [ 'id' => 365, 'long_description' => 'Requires level 46 Fishing and level 43 Cooking. Caught via big net fishing.', ],'Plain pizza' => [ 'id' => 2289, 'long_description' => 'Baked by players, see cooking skill. Takes 2 bites to eat completely (each bite heals 7 hitpoints).', ],'Swordfish' => [ 'id' => 373, 'long_description' => 'Requires level 50 Fishing and level 45 Cooking. Caught by using a Harpoon.', ],'Potato with butter' => [ 'id' => 6703, 'long_description' => 'Requires level 39 Cooking. Made by using Pat of butter on a Baked potato.', ],'Apple pie' => [ 'id' => 2323, 'long_description' => 'Requires 30 Cooking. Made by using an Cooking apple on a Pie shell to make a Uncooked apple pie and cooking it. Takes 2 bites to eat (each half healing 7 hitpoints).', ],'Chocolate cake' => [ 'id' => 1897, 'long_description' => 'Requires level 50 Cooking. Made by adding Chocolate dust to Cake.Takes 3 bites to eat (each healing 5 hitpoints). 1/3 Slice can be thieved from East Ardougne.', ],"Tangled toads' legs" => [ 'id' => 2187, 'long_description' => 'Requires level 40 Cooking. See Gnome cooking on how to make it.', ],'Potato with cheese' => [ 'id' => 6705, 'long_description' => 'Requires level 47 Cooking. Made by using Cheese on a Potato with butter.', ],'Meat pizza' => [ 'id' => 2293, 'long_description' => 'Requires level 45 Cooking. Made by using Cooked meat or Cooked chicken on a Pizza. Takes 2 bites to eat completely (each bite healing 8 hitpoints).', ],'Monkfish' => [ 'id' => 7946, 'long_description' => 'Requires level 62 Fishing and level 62 Cooking. Caught via small net fishing in Piscatoris after the completion of the Swan Song.', ],'Anchovy pizza' => [ 'id' => 2297, 'long_description' => 'Requires level 55 Cooking. Made by using Anchovies on a Pizza. Takes 2 bites to eat completely (each bite healing 9 hitpoints).', ],'Cooked karambwan' => [ 'id' => 3144, 'long_description' => 'Requires level 65 Fishing and level 30 Cooking. A Karambwan vessel and completion of Tai Bwo Wannai Trio must be done to fish and cook it properly. This food is unique in that it can be eaten in the same tick as another piece of food, making it popular amongst player killers and players looking to fight certain bosses that can combo a player to death.', ],'Curry' => [ 'id' => 2011, 'long_description' => 'Requires 60 cooking. Commonly used in Chaos Elemental fights. Once eaten, a bowl remains in the inventory.', ],'Ugthanki kebab' => [ 'id' => 1885, 'long_description' => "Requires level 58 Cooking. The player's character will utter a random phrase of contentment, such as \"Lovely!\", \"Scrummy!\", \"Delicious!\" or \"Yum!\" on eating.", ],'Mushroom potato' => [ 'id' => 7058, 'long_description' => 'Requires level 64 Cooking. Made by adding a mushroom and onion to a potato with butter.', ],'Shark' => [ 'id' => 385, 'long_description' => 'Highly popular among members. Requires level 76 Fishing and level 80 Cooking. Caught by using a Harpoon.', ],'Sea turtle' => [ 'id' => 397, 'long_description' => 'Requires level 82 Cooking. Can only be obtained from the Fishing Trawler minigame.', ],'Pineapple pizza' => [ 'id' => 2301, 'long_description' => 'Requires level 65 Cooking. Takes 2 bites to eat completely (each bite heals 11 hitpoints).', ],'Summer pie' => [ 'id' => 7218, 'long_description' => 'Requires level 95 Cooking. Takes 2 bites to eat completely (each bite heals 11 hitpoints, boosts your Agility level by 5, and restores 10% run energy). Each bite takes 0.6 seconds each to eat, but eating most food such as shark or manta ray will take 1.8. They are also weightless.', ],'Manta ray' => [ 'id' => 391, 'long_description' => 'Requires level 91 Cooking. Can only be obtained from the Fishing Trawler minigame, Zulrah and Vorkath.', ],'Tuna potato' => [ 'id' => 7060, 'long_description' => 'Requires level 68 Cooking. Made by combining Tuna and corn with a Potato with butter.', ],'Dark crab' => [ 'id' => 11936, 'long_description' => 'Requires level 85 Fishing and level 90 Cooking. Caught by using a Lobster pot with Dark fishing bait. Can only be fished in the Wilderness and the Resource Area.', ],'Anglerfish' => [ 'id' => 13441, 'long_description' => "Requires level 84 Cooking. Caught by using a fishing rod with sandworms at level 82 Fishing and 100% favour with the Piscarilius House. Healing dependent on the player's Hitpoints level and can boost hitpoints above one's maximum equal to the amount it heals.", ],'Basket of strawberries' => [ 'id' => 5406, 'long_description' => 'Contains 5 strawberries, each of which heals 1-6 hitpoints (6% of hp rounded up).', ],'Saradomin brew' => [ 'id' => 6685, 'long_description' => "Drank in 4 sips, each healing you 15% your hitpoints level plus 2 and can boost hitpoints above one's maximum. Very expensive and lowers offensive stats, necessitating the use of Restore/Super restore potions. It is not considered food as it is a potion made with the Herblore skill. Commonly used in boss battles.", ] ] ]; echo $newData ->{"time_last_updated"}
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.6
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/ovOoN on line 151
Process exited with code 255.

preferences:
160.66 ms | 1387 KiB | 32 Q