3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( "contentIds" => array( 1 ), "locationIds" => array( 1 ) ); var_dump( array_flip( $test ) );
Output for 4.3.2 - 7.1.0
Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/33kt4 on line 10 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/33kt4 on line 10 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/33kt4 on line 10 Warning: array_flip() [http://www.php.net/function.array-flip]: Can only flip STRING and INTEGER values! in /in/33kt4 on line 10 array(0) { }