3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '{ "normal_size": [ { "id": 1, "image": "MICMIMC30651-6.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-6.jpg" }, { "id": 2, "image": "MICMIMC30651-61.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-61.jpg" }, { "id": 3, "image": "MICMIMC30651-62.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-62.jpg" }, { "id": 4, "image": "MICMIMC30651-63.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-63.jpg" } ] }'; $output = json_encode(['image' => json_decode($data, true)]); echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qCOpX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A++++++%22normal_size%22%3A+%5B%0A++++++++%7B%0A++++++++++%22id%22%3A+1%2C%0A++++++++++%22image%22%3A+%22MICMIMC30651-6.jpg%22%2C%0A++++++++++%22url%22%3A+%22http%3A%2F%2Flocalhost%3A8000%2Fimages%2Fproduct%2Fpreview%2FMICMIMC30651-6.jpg%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22id%22%3A+2%2C%0A++++++++++%22image%22%3A+%22MICMIMC30651-61.jpg%22%2C%0A++++++++++%22url%22%3A+%22http%3A%2F%2Flocalhost%3A8000%2Fimages%2Fproduct%2Fpreview%2FMICMIMC30651-61.jpg%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22id%22%3A+3%2C%0A++++++++++%22image%22%3A+%22MICMIMC30651-62.jpg%22%2C%0A++++++++++%22url%22%3A+%22http%3A%2F%2Flocalhost%3A8000%2Fimages%2Fproduct%2Fpreview%2FMICMIMC30651-62.jpg%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22id%22%3A+4%2C%0A++++++++++%22image%22%3A+%22MICMIMC30651-63.jpg%22%2C%0A++++++++++%22url%22%3A+%22http%3A%2F%2Flocalhost%3A8000%2Fimages%2Fproduct%2Fpreview%2FMICMIMC30651-63.jpg%22%0A++++++++%7D%0A++++++%5D%0A++++%7D'
   27     1        INIT_FCALL                                               'json_encode'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $3      
          6        INIT_ARRAY                                       ~4      $3, 'image'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
   29    10        ECHO                                                     !1
   30    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
216.41 ms | 1070 KiB | 15 Q