3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //Enter your code here, enjoy! $array = array(); $array[] = "usernaam1"; $array[] = "usernaam2"; $array[] = "usernaam3"; $array[] = "usernaam4"; foreach( $array as $key => $usernaam ){ $get_transient = TRUE; if ( false === $get_transient ) { // It is there, so don't do anything. echo sprintf( "Doing nothing for %s\n", $usernaam ); break; } echo sprintf( "Fetching data for %s\n", $usernaam ); //echo $key."\t=>\t".$value."\n"; } echo "hallo";
Output for 4.3.0 - 7.1.0
Fetching data for usernaam1 Fetching data for usernaam2 Fetching data for usernaam3 Fetching data for usernaam4 hallo