3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $line = "2013-08-14 23:43:45;https://www.tcsbank.ru/credit/form/?utm_source=actionpay_apr_cc&utm_campaign=creditcard&utm_medium=aft.apr&utm_content=&wm=50945&sid=13c56c66-b5f3-8fef-f5ba-01407e5afe5b&actionpay=13c56c66-b5f3-8fef-f5ba-01407e5afe5b.50945;3168"; $xplodet = explode(';', $line); $pos = strrpos($xplodet[1], '='); if ($pos === false) continue; $start = $pos + 1; $xplodet[1] = substr($xplodet[1], $start); print_r($xplodet);
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0
Array ( [0] => 2013-08-14 23:43:45 [1] => 13c56c66-b5f3-8fef-f5ba-01407e5afe5b.50945 [2] => 3168 )