3v4l.org

run code in 300+ PHP versions simultaneously
<?php $superheroes = array( "spider-man" => array( "name" => "Peter Parker", "email" => "peterparker@mail.com", ), "super-man" => array( "name" => "Clark Kent", "email" => "clarkkent@mail.com", ), "iron-man" => array( "name" => "Harry Potter", "email" => "harrypotter@mail.com", ) ); function checkArray($array, $dimensionName) { if(is_Array ($array)) { echo "======== \n"; forEach($array as $index => $item) { $dimensionPath = $array[$index]; $dimensionName = ($array) . ($index); echo "YES-" . (($dimensionName) . ": " . ($item) . "\n"); checkArray($dimensionPath); } } } checkArray($superheroes);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: Too few arguments to function checkArray(), 1 passed in /in/amPml on line 29 and exactly 2 expected in /in/amPml:17 Stack trace: #0 /in/amPml(29): checkArray(Array) #1 {main} thrown in /in/amPml on line 17
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:
45.61 ms | 401 KiB | 8 Q