3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myCallingFunction(){ $x = $this->myRecursiveFunction(); var_dump($x); } function myRecursiveFunction($next = null, $recursion = false, $myArray = array()) { $return = false; if (!$recursion) { $result = json_decode($this->getMyResults); $myArray = $result->myResults; if ($result->getMore) { $this->myRecursiveFunction($result->getMore, true, $myArray); $return = false; }else{ $return = true; } } else { $result = json_decode($this->getMyResults); $myArray = array_merge($myArray,$result->myResults); if ($result->getMore) { $this->myRecursiveFunction($result->getMore, true, $myArray); $return = false; }else{ $return = true; } } } if($return){ var_dump($myArray); return $myArray; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $return in /in/GeXih on line 33

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