3v4l.org

run code in 500+ 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' ) );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/3EbKY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $export_data, !1 = $accumulated_data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    5     1        ASSIGN                                                       !1, 'not+an+array'
    6     2      > JMPZ                                                         !1, ->4
    7     3    >   ASSIGN                                                       !0, !1
   10     4    >   INIT_FCALL                                                   'array_merge'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     <array>
          7        DO_ICALL                                             $5      
          8        ASSIGN                                                       !0, $5
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.33 ms | 2146 KiB | 14 Q