3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $strurlregister = "http://ademe.webcompetence.org/solutions/register.php?creacompte=1&folid=26"; $strurlpos = strpos($strurlregister,".com/"); $strurlpos2 = strpos($strurlregister,".org/"); if($strurlpos != 0){ $strurlsuppr = substr($strurlregister,$strurlpos+4); $strurl = str_replace($strurlsuppr,"",$strurlregister); }else{ $strurlsuppr = substr($strurlregister,$strurlpos2+4); $strurl = str_replace($strurlsuppr,"",$strurlregister); } $strurl.="/back/trainbordereaupreinscr.php?output=5&trainscrid="; echo $strurl;
Output for 4.3.0 - 7.2.0
http://ademe.webcompetence.org/back/trainbordereaupreinscr.php?output=5&trainscrid=