3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["greeting", "hello", "question", "how-are-you", "response", "im-fine"]; var_export( array_column(array_chunk($array, 2), 1, 0) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
158.01 ms | 1605 KiB | 13 Q