3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "0" => "", "address_country" => "", "1" => "2011-11-29 14:49:10", "createdtime" => "2011-11-29 14:49:10" ); $c = array_values($a); for($i = 0; $i < count($c); $i++){ if(count($c) > ($i-1)) { if(array_search($c[$i+1],$a) == "address_country") echo "found"; } }

preferences:
57.77 ms | 402 KiB | 5 Q