3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $headers = array( "Volgnummer"=>array(), "Datum"=>array(), "Naam en woonplaats van de leverancier"=>array(), "TOTAAL BEDRAG"=>array( "Facturen"=>array(), "Creditnotas"=>array(), ), "Korting cont. bet."=>array( "afgetrokken op facturen"=>array(), "voorwaardelijke"=>array(), ), "Omzet per verkoopsafdeling"=>array( "Software"=>array(), "Hardware"=>array(), "Anders1"=>array(), "Anders2"=>array() ), "Gefact. kosten + diversen" =>array( "Waarop BTW"=>array(), "Vrij van BTW"=>array(), "Code"=>array() ), "Belastbare basis-omzet" =>array( "0%"=>array(), "6%"=>array(), "12%"=>array(), "21%"=>array(), "Bij medecontractant"=>array(), "IC Leveringen"=>array(), "Levering met installatie/verkoop op afstand/ uitv-. niet-EG"=>array(), "Aangerekende BTW"=>array() ), "Uitgereikte creditnotas"=>array( "Maatstaf"=>array( "IC Leveringen"=>array(), "Andere"=>array() ), "BTW"=>array() ), "Herzieningen"=>array( "Te betalen"=>array(), "Aftrekbaar"=>array() ), "Betaling"=>array( "Datum"=>array(), "Wijze"=>array(), "Bedrag"=>array(), "Korting"=>array() ) ); $objTmp = (object) array('aFlat' => array()); array_walk_recursive($headers, create_function('&$v, $k, &$t', '$t->aFlat[] = $v;'), $objTmp); print_r($objTmp);
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/T2UW4 on line 54 stdClass Object ( [aFlat] => Array ( ) )
Output for 5.0.1 - 7.1.10
stdClass Object ( [aFlat] => Array ( ) )
Output for 5.0.0

Process exited with code 139.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_walk_recursive() in /in/T2UW4 on line 54
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_walk_recursive() in /in/T2UW4 on line 54
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_walk_recursive() in /in/T2UW4 on line 54