3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.13 ms | 1395 KiB | 19 Q