3v4l.org

run code in 300+ PHP versions simultaneously
<?php $j1 = '[{"id":"1","texto":"Vamos newells 17471934","fecha":"2019-06-24 12:09:12","categoria":"1","idpayment":"Reference_1561388952","provincia":"1","estado":"NO","email":"newells@gmail.com"}]'; $j1arr = json_decode($j1, true); $j2 = ' { "Texto": " VENDO O PERMUTO", "imageJob": { "pathConvertido": "ClasificadosPNG/0011311247.png", "convertido": true, "id": 5011 }, "rubroClasificado": { "CodigoRubro": 150, "id": 76 } }'; $j2arr = json_decode($j2, true); $r = array_merge($j1arr[0], $j2arr); print_r($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WKX1U
function name:  (null)
number of ops:  22
compiled vars:  !0 = $j1, !1 = $j1arr, !2 = $j2, !3 = $j2arr, !4 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%22id%22%3A%221%22%2C%22texto%22%3A%22Vamos+newells+17471934%22%2C%22fecha%22%3A%222019-06-24+12%3A09%3A12%22%2C%22categoria%22%3A%221%22%2C%22idpayment%22%3A%22Reference_1561388952%22%2C%22provincia%22%3A%221%22%2C%22estado%22%3A%22NO%22%2C%22email%22%3A%22newells%40gmail.com%22%7D%5D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    5     6        ASSIGN                                                   !2, '++%7B%0A++++%22Texto%22%3A+%22+VENDO+O+PERMUTO%22%2C%0A++++%22imageJob%22%3A+%7B%0A++++++++%22pathConvertido%22%3A+%22ClasificadosPNG%2F0011311247.png%22%2C%0A++++++++%22convertido%22%3A+true%2C%0A++++++++%22id%22%3A+5011%0A++++%7D%2C%0A++++%22rubroClasificado%22%3A+%7B%0A++++++++%22CodigoRubro%22%3A+150%2C%0A++++++++%22id%22%3A+76%0A++++%7D%0A%7D'
   17     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !2
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
   18    12        INIT_FCALL                                               'array_merge'
         13        FETCH_DIM_R                                      ~11     !1, 0
         14        SEND_VAL                                                 ~11
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !4, $12
   20    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.18 ms | 1007 KiB | 16 Q