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 = "E HREF=HTTPS://WWW.ROGERS.COM/BUSINESS/BSS.PORTAL?_NFPB=TRUE&_ST=&_WINDOWLABEL=HEADER_PORTLET&_URLTYPE=ACTION&WLPHEADER_PORTLET_ACTION=CHANGELANGUAGE&LANG=FR>FRANCAISAPRèS"; $pos = strpos($rogers, "FRANCAIS"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $POS); if(!$rogers){ die("SUBSTR_ERROR"); } //echo($rogers); $revrogers = strrev($rogers); echo($revrogers);
based on BaYAL
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: POS in /in/3A2JU on line 13 SUBSTR_ERROR
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: POS in /in/3A2JU on line 13 SUBSTR_ERROR