3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$homepage = FILE_GET_CONTENTS('WWW.ROGERS.COM'); $homepage = true; if(!$homepage){ die("FILE_GET_CONTENTS_ERROR"); } $rogers = "<a href=\"/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr\">francais</a>"; $pos = strpos($rogers, "francais"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } $revrogers = strrev($rogers); echo($revrogers); $pos = strpos($revrogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } echo($pos);
based on FWaHl
Output for 4.3.0 - 7.2.0
>"rf=gnal&egaugnaLegnahc=noitca_teltrop_redaehplw&noitca=epyTlru_&teltrop_redaeh=lebaLwodniw_&=ts_&eurt=bpfn_?latrop.SSB/ssenisub/"=ferh a<137