3v4l.org

run code in 300+ PHP versions simultaneously
<?php $j1 = '{ "data": [ { "parent": "summer", "image": "template/assets/x354.jpg", "productName": "United Colors of Benetton" }, { "parent": "autumn", "image": "template/assets/x354.jpg", "productName": "United Colors of Benetton" }, { "parent": "summer", "image": "template/assets/x354.jpg", "productName": "Puma Running Shoes" } ] } '; $d1 = json_decode($j1); print_r($d1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQIet
function name:  (null)
number of ops:  9
compiled vars:  !0 = $j1, !1 = $d1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B+%22data%22%3A+%5B%0A+++++++%7B%0A+++++++%22parent%22%3A+%22summer%22%2C%0A+++++++%22image%22%3A+%22template%2Fassets%2Fx354.jpg%22%2C%0A+++++++%22productName%22%3A+%22United+Colors+of+Benetton%22++++%7D%2C+++%7B+++%22parent%22%3A+%22autumn%22%2C+++%22image%22%3A+%22template%2Fassets%2Fx354.jpg%22%2C+++%22productName%22%3A+%22United%0A+++Colors+of+Benetton%22+%7D%2C+%7B+%22parent%22%3A+%22summer%22%2C+%22image%22%3A%0A+++%22template%2Fassets%2Fx354.jpg%22%2C+%22productName%22%3A+%22Puma+Running+Shoes%22+%7D+%5D+%7D%0A'
   11     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   12     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
211.61 ms | 1394 KiB | 17 Q