3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array( 1 => array( "contentIds" => array( 12, 13, 14 ), "locationIds" => array( 24 ) ), 2 => array( "contentIds" => array( 12, 13, 14 ), "locationIds" => array( 24 ) ) ); var_dump( array_flip( $test ) );
Output for 4.3.2 - 7.1.7
Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/E9EQT on line 15 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/E9EQT on line 15 array(0) { }
Output for 4.3.0 - 4.3.1
Warning: array_flip() [http://www.php.net/function.array-flip]: Can only flip STRING and INTEGER values! in /in/E9EQT on line 15 Warning: array_flip() [http://www.php.net/function.array-flip]: Can only flip STRING and INTEGER values! in /in/E9EQT on line 15 array(0) { }