3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ABC { public static function recursion($information, $list) { self::$array = $information; self::$keylist = $list; } public static $array; private static $keylist; private static $asterisk = "**"; } $information = array("login" => "someUsername", "password" => "somePassword", "card_pin"=>"card_1234", "pin"=>"pin_356", "iin" => "iin_123", "shipping" => array("telephone" => array("value" => "telephone_998")), "cardnumber" => "card_number_876", "customer_id" => "customer_654", "telephone" => "someOtherTelephoneNumber555"); $list = "login,customer_id"; print_r($information); echo "\n\n"; ABC::recursion($information, $list); print_r(Recursion::$array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [login] => someUsername [password] => somePassword [card_pin] => card_1234 [pin] => pin_356 [iin] => iin_123 [shipping] => Array ( [telephone] => Array ( [value] => telephone_998 ) ) [cardnumber] => card_number_876 [customer_id] => customer_654 [telephone] => someOtherTelephoneNumber555 ) Fatal error: Uncaught Error: Class "Recursion" not found in /in/cEDL9:30 Stack trace: #0 {main} thrown in /in/cEDL9 on line 30
Process exited with code 255.

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:
55.24 ms | 402 KiB | 8 Q