3v4l.org

run code in 300+ PHP versions simultaneously
<?php // What happens when JSON string was stored in the option? $export_data = array(); $accumulated_data = 'not an array'; // get_post_meta( $request_id, '_export_data_raw', true ); if ( $accumulated_data ) { $export_data = $accumulated_data; } $export_data = array_merge( $export_data, array( 'test' => 'data' ) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
173.59 ms | 2155 KiB | 11 Q