3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $words = array('me' => array('class'=> 'pronoun'), 'victor' => array('class'=> 'noun'), 'john' => array('class'=> 'noun')); print_r(array_flip($words));
based on XeVDX
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/uQqHa on line 4 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/uQqHa on line 4 Warning: array_flip(): Can only flip STRING and INTEGER values! in /in/uQqHa on line 4 Array ( )
Output for hhvm-3.22.0
Warning: Can only flip STRING and INTEGER values! in /in/uQqHa on line -1 Warning: Can only flip STRING and INTEGER values! in /in/uQqHa on line -1 Warning: Can only flip STRING and INTEGER values! in /in/uQqHa on line -1 Array ( )
Output for hhvm-3.18.5 - 3.21.3
Warning: Can only flip STRING and INTEGER values! in /in/uQqHa on line 4 Warning: Can only flip STRING and INTEGER values! in /in/uQqHa on line 4 Warning: Can only flip STRING and INTEGER values! in /in/uQqHa on line 4 Array ( )