3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 0 => array('user_id' => '1', 'email'=>'email1'), 1 => array('user_id' => '2', 'email'=>'email2'), 2 => array('user_id' => '3', 'email'=>'email3') ); var_dump(array_flip($array));
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 array(0) { }
Output for hhvm-3.10.0 - 3.12.0
Warning: Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 Warning: Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 Warning: Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 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/kMAc2 on line 8 Warning: array_flip() [http://www.php.net/function.array-flip]: Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 Warning: array_flip() [http://www.php.net/function.array-flip]: Can only flip STRING and INTEGER values! in /in/kMAc2 on line 8 array(0) { }