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' ) );

preferences:
28.43 ms | 404 KiB | 5 Q