3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'indexColor' => '#0FF0FF', 'faviURL' => get_stylesheet_directory_uri() . '/favicon.ico', 'secondColor' => '#0FFF0F', 'background' => array( 'image' => NULL, 'color' => '#DDDDDD', 'repeat' => 'no-repeat' ), 'blog' => array( 'animations' => array( 'title_classes' => 'wow animated fadeIn' ) ), 'sidebar' => array( 'position' => 'right' ) ); function flatten_array(array $array) { $flattened_array = array(); array_walk_recursive($array, function($a) use (&$flattened_array) { $flattened_array[] = $a; }); return $flattened_array; } print_r(flatten_array($arr));
based on GkNMt
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function get_stylesheet_directory_uri() in /in/XPiM6:4 Stack trace: #0 {main} thrown in /in/XPiM6 on line 4
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Call to undefined function get_stylesheet_directory_uri() in /in/XPiM6 on line 4
Process exited with code 255.