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' ) );
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, string given in /in/3EbKY:10 Stack trace: #0 /in/3EbKY(10): array_merge('not an array', Array) #1 {main} thrown in /in/3EbKY on line 10
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
167.26 ms | 405 KiB | 5 Q