3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "33~WRIA/16458/2007~72~RAJESH MISHRA~UNION OF INDIA THROUGH ITS SECRETARY, AND 4 OTHERS~D~2014-03-10~02:19:41 07/03/2014|33~WRIA/29576/2007~73~SMT. MEENA YADAV AND OTHERS~STATE OF U.P. AND OTHERS~D~2014-03-10~02:19:41 07/03/2014|9~COPP/43/2012~19~DASAPRAKASH HOTELS AND RESORTS PVT. LTD.~M/S KUMAR ASHIYANA PVT. LTD.~D~2014-03-06~02:56:55 07/03/2014|9~COPP/43/2012~19~DASAPRAKASH HOTELS AND RESORTS PVT. LTD.~M/S KUMAR ASHIYANA PVT. LTD.~D~2014-03-06~02:56:55 07/03/2014|10~WRIA/50923/2012~27~LALLAN KUMAR~COAL INDIA LTD. THRU. ITS CHAIRMAN AND OTHERS~D~2014-03-06~02:56:55 07/03/2014|10~WRIA/52176/2011~41~MANEESH THAKUR~STATE OF U.P. AND OTHERS~D~2014-03-06~02:56:55 07/03/2014|10~WRIA/50923/2012~27~LALLAN UMAR~COAL INDIA LTD. THRU. ITS CHAIRMAN AND OTHERS~D~2014-03-06~02:56:55 07/03/2014|10~WRIA/52176/2011~41~MANEESH THAKUR~STATE OF U.P. AND OTHERS~D~2014-03- 06~02:56:55 07/03/2014|33~WRIA/30565/2005~31~VIJAY PRATAP SINGH~M/S TRIVENI STRUCTURALS LIMITED AND ANOTHER~D~2014-03-06~02:56:55 07/03/2014|33~WRIA/30565/2005~31~VIJAY PRATAP SINGH~M/S TRIVENI STRUCTURALS LIMITED AND ANOTHER~D~2014-03-06~02:56:55 07/03/2014|39~WRIC/48169/2002~2~TAUFIQ KAMAL~STATE OF U.P. THRU SECY. HOUSING GOVT. OF U.P. AND OTHERS~D~2014-03-06~02:56:55 07/03/2014|"; $samp =explode("|",$str); //print_r($samp); $find="2014-03-10"; foreach($samp as $value) {//echo strpos($value,"2014-03-10")."\n"; if(strpos($value,"2014-03-10") !== false) { echo $value."<br>"; } }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
33~WRIA/16458/2007~72~RAJESH MISHRA~UNION OF INDIA THROUGH ITS SECRETARY, AND 4 OTHERS~D~2014-03-10~02:19:41 07/03/2014<br>33~WRIA/29576/2007~73~SMT. MEENA YADAV AND OTHERS~STATE OF U.P. AND OTHERS~D~2014-03-10~02:19:41 07/03/2014<br>
Output for hhvm-3.10.0

Process exited with code 153.