3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $redirect = '/est/weox/customer/login?return=%2Fest%2Fadmin%2Fcart'; $result = parse_url( $redirect ); $output = array(); if ( isset( $result['query'] ) ) { parse_str( $result['query'], $output ); } if ( ! empty( $output ) && isset( $output['return'] ) ) { var_dump( $output['return'] ); }
Output for 4.3.0 - 7.1.0
string(15) "/est/admin/cart"