3v4l.org

run code in 300+ PHP versions simultaneously
<?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 isn't there, so do something. echo sprintf( "Fetching data for %s\n", $usernaam ); $array = array( "0" => $usernaam ); break; } echo sprintf( "Doing nothing for %s\n", $usernaam ); echo $key."\t=>\t".$value."\n"; } var_dump($array);
Output for git.master, git.master_jit, rfc.property-hooks
Doing nothing for usernaam1 Warning: Undefined variable $value in /in/MvTBU on line 23 0 => Doing nothing for usernaam2 Warning: Undefined variable $value in /in/MvTBU on line 23 1 => Doing nothing for usernaam3 Warning: Undefined variable $value in /in/MvTBU on line 23 2 => Doing nothing for usernaam4 Warning: Undefined variable $value in /in/MvTBU on line 23 3 => array(4) { [0]=> string(9) "usernaam1" [1]=> string(9) "usernaam2" [2]=> string(9) "usernaam3" [3]=> string(9) "usernaam4" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.08 ms | 402 KiB | 8 Q