3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=['x','y','z']; while(@$i++<count($a)) echo $a[$i-1]; echo "\n"; echo implode(null,$a); echo "\n"; foreach($a as $e) echo $e; echo "\n"; for($i=0;$i<count($a);$i++) echo $a[$i]; echo "\n"; function f($e){echo $e;} array_walk($a,"f"); echo "\n"; // for debugging var_dump($a); print_r($a);
Output for git.master, git.master_jit, rfc.property-hooks
xyz Deprecated: implode(): Passing null to parameter #1 ($separator) of type array|string is deprecated in /in/LsN83 on line 10 xyz xyz xyz xyz array(3) { [0]=> string(1) "x" [1]=> string(1) "y" [2]=> string(1) "z" } Array ( [0] => x [1] => y [2] => z )

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