3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $adres = "pl/blog/2016/11/08/raiffeisen-polbank-mobilny-portfel/"; echo $adres; if(strstr($adres, "blog")!=FALSE){ $url=explode("/", $adres); $size=count($url); echo "\n"; $goto = $url[$size-2]; echo $goto; header("Location: /$goto"); }
based on sndln
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
pl/blog/2016/11/08/raiffeisen-polbank-mobilny-portfel/ raiffeisen-polbank-mobilny-portfel Warning: Cannot modify header information - headers already sent by (output started at /in/RQju5:3) in /in/RQju5 on line 10
Output for hhvm-3.15.4
pl/blog/2016/11/08/raiffeisen-polbank-mobilny-portfel/ raiffeisen-polbank-mobilny-portfel Warning: Cannot modify header information - headers already sent in /in/RQju5 on line 10