3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hrefVal = 'javascript:__doPostBack(&#39;ctl00$ContentPlaceHolder1$hlPendingDeletes1&#39;,&#39;&#39;)'; $hrefVal = html_entity_decode($hrefVal); $args = str_replace("'", '', substr($hrefVal, strpos($hrefVal, '(') + 1, strpos($hrefVal, ')') - strpos($hrefVal, '(') - 1)); list($eventTarget, $eventArguments) = explode(',', $args); echo "EVENTTARGET: $eventTarget, EVENTARGUMENTS: $eventArguments";
Output for 4.3.0 - 4.4.9, 5.0.5 - 5.6.28, 7.0.0 - 7.1.0
EVENTTARGET: &#39;ctl00$ContentPlaceHolder1$hlPendingDeletes1&#39;, EVENTARGUMENTS: &#39;&#39;
Output for 5.0.0 - 5.0.4, hhvm-3.10.0 - 3.12.0
EVENTTARGET: ctl00$ContentPlaceHolder1$hlPendingDeletes1, EVENTARGUMENTS: