3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "My Name is Fred"; $i = 0; while( $d = $str[$i] ) { if( $d == " "){ $out = " ".$temp.$out; $temp = ""; }else{ $temp.=$d; } $i++; } echo $temp.$out; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $temp in /in/9dUqi on line 12 Warning: Undefined variable $out in /in/9dUqi on line 9 Warning: Uninitialized string offset 15 in /in/9dUqi on line 5 Fred is Name My

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:
37.61 ms | 401 KiB | 8 Q