3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! array_flip( array ( 4 => array ( "locationIds" => array ( ), "contentIds" => array ( ) ), 2 => array ( "locationIds" => array ( ), "contentIds" => array ( ) ) ) );
Output for 7.0.20, 7.1.5 - 7.2.6
Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/aAJEL on line 7 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/aAJEL on line 7
Output for 7.0.0 - 7.0.14, 7.1.0
Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/aAJEL on line 17 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/aAJEL on line 17
Output for 4.3.2 - 5.6.28
Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/aAJEL on line 33 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/aAJEL on line 33
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/aAJEL on line 33 Warning: array_flip() [http://www.php.net/function.array-flip]: Can only flip STRING and INTEGER values! in /in/aAJEL on line 33