3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'value1' => 'key1', 'value2' => 'key2', 'value3' => 'key3', 'value4' => 'key4', ); //typed it the wrong way and need to flip it var_export(array_flip($array));

preferences:
41.55 ms | 402 KiB | 5 Q