3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wtf = array(); $a = parse_str("elements[55][e_id]=1", $tmp_save1); $wtf = array_merge($wtf, $a); $b = parse_str("elements[55][wtf]=2", $tmp_save2); $wtf = array_merge($wtf, $b); print_r($wtf);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CZh9T
function name:  (null)
number of ops:  25
compiled vars:  !0 = $wtf, !1 = $a, !2 = $tmp_save1, !3 = $b, !4 = $tmp_save2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'parse_str'
          2        SEND_VAL                                                 'elements%5B55%5D%5Be_id%5D%3D1'
          3        SEND_REF                                                 !2
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    6     6        INIT_FCALL                                               'array_merge'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !0, $8
    8    11        INIT_FCALL                                               'parse_str'
         12        SEND_VAL                                                 'elements%5B55%5D%5Bwtf%5D%3D2'
         13        SEND_REF                                                 !4
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
    9    16        INIT_FCALL                                               'array_merge'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !0, $12
   11    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.12 ms | 1395 KiB | 19 Q