3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input_arr= array( 0=>array(india0,srilanka1,pakistan0,banglades0), 1=>array(india1,srilanka1,pakistan1,bangladesh1), 2=>array(india2,srilanka2,pakistan2,bangladesh2), 3=>array(india3,srilanka3,pakistan3,bangladesh3), 4=>array(india4,srilanka4,pakistan4,bangladesh4), 5=>array(india5,srilanka5,pakistan5,bangladesh5), ); for($i=0;$i<sizeof($input_arr);$i++) { if(in_array("searchstring",$input_arr[$i])) if(in_array("searchstring2",$input_arr[$i])) echo $input_arr[$i]; }
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant india0 - assumed 'india0' in /in/Vcbnr on line 3 Notice: Use of undefined constant srilanka1 - assumed 'srilanka1' in /in/Vcbnr on line 3 Notice: Use of undefined constant pakistan0 - assumed 'pakistan0' in /in/Vcbnr on line 3 Notice: Use of undefined constant banglades0 - assumed 'banglades0' in /in/Vcbnr on line 3 Notice: Use of undefined constant india1 - assumed 'india1' in /in/Vcbnr on line 4 Notice: Use of undefined constant srilanka1 - assumed 'srilanka1' in /in/Vcbnr on line 4 Notice: Use of undefined constant pakistan1 - assumed 'pakistan1' in /in/Vcbnr on line 4 Notice: Use of undefined constant bangladesh1 - assumed 'bangladesh1' in /in/Vcbnr on line 4 Notice: Use of undefined constant india2 - assumed 'india2' in /in/Vcbnr on line 5 Notice: Use of undefined constant srilanka2 - assumed 'srilanka2' in /in/Vcbnr on line 5 Notice: Use of undefined constant pakistan2 - assumed 'pakistan2' in /in/Vcbnr on line 5 Notice: Use of undefined constant bangladesh2 - assumed 'bangladesh2' in /in/Vcbnr on line 5 Notice: Use of undefined constant india3 - assumed 'india3' in /in/Vcbnr on line 6 Notice: Use of undefined constant srilanka3 - assumed 'srilanka3' in /in/Vcbnr on line 6 Notice: Use of undefined constant pakistan3 - assumed 'pakistan3' in /in/Vcbnr on line 6 Notice: Use of undefined constant bangladesh3 - assumed 'bangladesh3' in /in/Vcbnr on line 6 Notice: Use of undefined constant india4 - assumed 'india4' in /in/Vcbnr on line 7 Notice: Use of undefined constant srilanka4 - assumed 'srilanka4' in /in/Vcbnr on line 7 Notice: Use of undefined constant pakistan4 - assumed 'pakistan4' in /in/Vcbnr on line 7 Notice: Use of undefined constant bangladesh4 - assumed 'bangladesh4' in /in/Vcbnr on line 7 Notice: Use of undefined constant india5 - assumed 'india5' in /in/Vcbnr on line 8 Notice: Use of undefined constant srilanka5 - assumed 'srilanka5' in /in/Vcbnr on line 8 Notice: Use of undefined constant pakistan5 - assumed 'pakistan5' in /in/Vcbnr on line 8 Notice: Use of undefined constant bangladesh5 - assumed 'bangladesh5' in /in/Vcbnr on line 8
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant india0 - assumed 'india0' in /in/Vcbnr on line 3 Notice: Use of undefined constant srilanka1 - assumed 'srilanka1' in /in/Vcbnr on line 3 Notice: Use of undefined constant pakistan0 - assumed 'pakistan0' in /in/Vcbnr on line 3 Notice: Use of undefined constant banglades0 - assumed 'banglades0' in /in/Vcbnr on line 3 Notice: Use of undefined constant india1 - assumed 'india1' in /in/Vcbnr on line 4 Notice: Use of undefined constant srilanka1 - assumed 'srilanka1' in /in/Vcbnr on line 4 Notice: Use of undefined constant pakistan1 - assumed 'pakistan1' in /in/Vcbnr on line 4 Notice: Use of undefined constant bangladesh1 - assumed 'bangladesh1' in /in/Vcbnr on line 4 Notice: Use of undefined constant india2 - assumed 'india2' in /in/Vcbnr on line 5 Notice: Use of undefined constant srilanka2 - assumed 'srilanka2' in /in/Vcbnr on line 5 Notice: Use of undefined constant pakistan2 - assumed 'pakistan2' in /in/Vcbnr on line 5 Notice: Use of undefined constant bangladesh2 - assumed 'bangladesh2' in /in/Vcbnr on line 5 Notice: Use of undefined constant india3 - assumed 'india3' in /in/Vcbnr on line 6 Notice: Use of undefined constant srilanka3 - assumed 'srilanka3' in /in/Vcbnr on line 6 Notice: Use of undefined constant pakistan3 - assumed 'pakistan3' in /in/Vcbnr on line 6 Notice: Use of undefined constant bangladesh3 - assumed 'bangladesh3' in /in/Vcbnr on line 6