3v4l.org

run code in 300+ PHP versions simultaneously
imn-[[[[<?php|$accessories = json_decode('{"BPC8S":{"src":"\/assets\/media\/images\/groups\/accessories\/BPC8S.jpg","alt":"BPC8S","link":""}}'); foreach( $accessories AS $key => $value ) { $udpateAccessories[] = array($key => $value); } echo(json_encode($udpateAccessories));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/RQTgR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $accessories, !1 = $value, !2 = $key, !3 = $udpateAccessories
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'imn-%5B%5B%5B%5B'
          1        FETCH_CONSTANT                                   ~4      'php'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAL                                                 '%7B%22BPC8S%22%3A%7B%22src%22%3A%22%5C%2Fassets%5C%2Fmedia%5C%2Fimages%5C%2Fgroups%5C%2Faccessories%5C%2FBPC8S.jpg%22%2C%22alt%22%3A%22BPC8S%22%2C%22link%22%3A%22%22%7D%7D'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                           ~6      !0, $5
          6        BW_OR                                            ~7      ~4, ~6
          7        FREE                                                     ~7
    3     8      > FE_RESET_R                                       $8      !0, ->15
          9    > > FE_FETCH_R                                       ~9      $8, !1, ->15
         10    >   ASSIGN                                                   !2, ~9
    5    11        INIT_ARRAY                                       ~12     !1, !2
         12        ASSIGN_DIM                                               !3
         13        OP_DATA                                                  ~12
    3    14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $8
    8    16        INIT_FCALL                                               'json_encode'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $13     
         19        ECHO                                                     $13
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.73 ms | 1395 KiB | 17 Q