3v4l.org

run code in 300+ PHP versions simultaneously
<?php $initialString = "Hello, PHP"; $myFunc = function($myFunc, $n = 3, &$initialString){ if($n >= 0){ $initialString .= ", " . $initialString; $temp = $myFunc($myFunc, $n - 1, $initialString); return $temp; } return $initialString; }; echo $myFunc($myFunc, 3, $initialString);
Output for rfc.property-hooks, git.master, git.master_jit
Deprecated: Optional parameter $n declared before required parameter $initialString is implicitly treated as a required parameter in /in/Aa2Rd on line 4 Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP, Hello, PHP

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:
42.69 ms | 1845 KiB | 4 Q