3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data['meta'] = array('parameter' => 'jo', 'irgendwas' => 'so'); $data['id'] = 'dsoifjdsf:dsfoijdsoi:dofds'; $mapping = explode(':', $data['id'], 2); $data['meta'] = array_merge($data['meta'], array('parameter' => reset($mapping))); var_dump($mapping, $data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZSCs
function name:  (null)
number of ops:  27
compiled vars:  !0 = $data, !1 = $mapping
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'meta'
          1        OP_DATA                                                  <array>
    3     2        ASSIGN_DIM                                               !0, 'id'
          3        OP_DATA                                                  'dsoifjdsf%3Adsfoijdsoi%3Adofds'
    4     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%3A'
          6        FETCH_DIM_R                                      ~4      !0, 'id'
          7        SEND_VAL                                                 ~4
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    5    11        INIT_FCALL                                               'array_merge'
         12        FETCH_DIM_R                                      ~8      !0, 'meta'
         13        SEND_VAL                                                 ~8
         14        INIT_FCALL                                               'reset'
         15        SEND_REF                                                 !1
         16        DO_ICALL                                         $9      
         17        INIT_ARRAY                                       ~10     $9, 'parameter'
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                         $11     
         20        ASSIGN_DIM                                               !0, 'meta'
         21        OP_DATA                                                  $11
    6    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1395 KiB | 21 Q