3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once '/in/8vcRY'; $uri = new uri('jdoe@gmail.com'); $uri->chain() ->replace('SCHEME', 'mailto:') ->query_add('subject', 'Re: [Suggestion Box]') ->query_add('body', 'More snickers in the break room please!') ->p_str('', PHP_EOL) ; printf('<a href="%1$s">%2$s</a>'.PHP_EOL, $uri, $uri->authority); print_r($uri->query_arr());
Output for 5.6.28, 7.0.14 - 7.1.0
Warning: require_once(/in/8vcRY): failed to open stream: No such file or directory in /in/VKrsO on line 3 Fatal error: require_once(): Failed opening required '/in/8vcRY' (include_path='.:') in /in/VKrsO on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.25, 7.0.0 - 7.0.10
mailto:jdoe@gmail.com?subject=Re%3A%20%5BSuggestion%20Box%5D&body=More%20snickers%20in%20the%20break%20room%20please%21 <a href="mailto:jdoe@gmail.com?subject=Re%3A%20%5BSuggestion%20Box%5D&body=More%20snickers%20in%20the%20break%20room%20please%21">jdoe@gmail.com</a> Array ( [subject] => Re: [Suggestion Box] [body] => More snickers in the break room please! )
Output for 5.3.0 - 5.3.29
Notice: Use of undefined constant PHP_QUERY_RFC3986 - assumed 'PHP_QUERY_RFC3986' in /in/8vcRY on line 19 Warning: http_build_query() expects at most 3 parameters, 4 given in /in/8vcRY on line 19 Notice: Use of undefined constant PHP_QUERY_RFC3986 - assumed 'PHP_QUERY_RFC3986' in /in/8vcRY on line 19 Warning: http_build_query() expects at most 3 parameters, 4 given in /in/8vcRY on line 19 mailto:jdoe@gmail.com <a href="mailto:jdoe@gmail.com">jdoe@gmail.com</a> Array ( )