3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function create_function() in /in/T2UW4:54 Stack trace: #0 {main} thrown in /in/T2UW4 on line 54
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Deprecated: Function create_function() is deprecated in /in/T2UW4 on line 54 stdClass Object ( [aFlat] => Array ( ) )
Output for 5.0.1 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.3.32 - 7.3.33
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.3.11, 4.4.0 - 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

preferences:
269.66 ms | 401 KiB | 312 Q