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 = "tttttttt<a href=\"/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr\">francais</a>tttttttttt"; echo($rogers); echo("\n"); $pos = strpos($rogers, "francais"); if($pos === FALSE){ die("STRPOS_ERROR"); } /*echo($rogers); echo("\n"); $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("\n"); $revrogers = strrev($rogers); $pos = strpos($revrogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } echo($rogers); echo("\n"); echo($revrogers); */ //$rogers = substr($rogers, 0, $pos); //if(!$rogers){ // die("SUBSTR_ERROR"); //}
based on ZLN1h
Output for 4.3.0 - 4.4.1, 4.4.3 - 5.0.5, 5.1.1, 5.1.3 - 5.1.4, 5.1.6 - 7.2.0
tttttttt<a href="/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr">francais</a>tttttttttt
Output for 4.4.2, 5.1.2, 5.1.5
//}tttttttt<a href="/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr">francais</a>tttttttttt
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/EbAC5 on line 42
Process exited with code 255.