3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $eingabe = "You have 0 tokens. (Unbound: 0 Account Bound: 0) Purchase Tokens | Permanent Boosts | Temporary Boosts | Miscellaneous Gold Boost: 20/500%   +1% for 3 Tokens | +10% for 30 Tokens | +100% for 300 Tokens Experience Boost: 20/500%   +1% for 3 Tokens | +10% for 30 Tokens | +100% for 300 Tokens Stat Drop Boost: 352/500%   +1% for 3 Tokens | +10% for 30 Tokens | +100% for 300 Tokens Quest Boost: 0/500%   +1% for 3 Tokens | +10% for 30 Tokens | +100% for 300 Tokens Global Drop Boost: 0/500%   +1% for 3 Tokens | +10% for 30 Tokens | +100% for 300 Tokens Health Boost: 0/50% +1% for 30 Tokens | +10% for 300 Tokens Attack Boost: 0/50% +1% for 30 Tokens | +10% for 300 Tokens Defence Boost: 0/50% +1% for 30 Tokens | +10% for 300 Tokens Accuracy Boost: 0/25% +1% for 30 Tokens | +10% for 300 Tokens Evasion Boost: 0/25% +1% for 30 Tokens | +10% for 300 Tokens Jack of All Jades: 4/50% +1% for 30 Tokens | +10% for 300 Tokens Dungeon Mastery: 5/50% +1% for 30 Tokens | +10% for 300 Tokens Areaboss Taxonomy'n Taxidermy: 0/50% +1% for 50 Tokens | +10% for 500 Tokens [Reset all boosts. You will get back 1396 out of 1446 tokens.] Autos: 50  +1 for 5 Tokens [Reset autos. You will get back 81 out of 90 tokens.] Jewellery Slots: 10/10 Tradeskill slots: 0/20  +1 for 25 Tokens You have reset 1 times. The cost per reset will go up by 50 tokens or 10% of tokens spent each time you reset (whichever's cheaper). Both autos and boosts are on the same reset counter. This is not something that is meant to be used frequently, but more of a one-time 'oh shit I fucked up I need to reset to fix that' kind of thing."; $eingabe = str_replace("+1%", "", $eingabe); $eingabe = str_replace("+10%", "", $eingabe); $eingabe = str_replace("+100%", "", $eingabe); $eingabe = str_replace("&#39;", "'", $eingabe); $eingabe = explode("%", $eingabe); $rest = $eingabe[13]; $rest = explode("+1 for", $rest); $auto = $rest[0]; $jewelry = $rest[1]; $jewelry = explode("Jewellery Slots:", $jewelry); $jewelry = trim($jewelry[1]); $jewelry = explode("\n", $jewelry); $jewelry = explode(" ", $jewelry[0]); $jewelry = trim(str_replace("/10", "", $jewelry[0])); $gold = $eingabe[0]; $gold = explode("Gold Boost:", $gold); $count = count($gold) - 1; $gold = $gold[$count]; $gold = str_replace("/500", "", $gold); echo $gold; exit; //print_r($rest); print_r($jewelry);
based on b5H2t
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
20