3v4l.org

run code in 300+ PHP versions simultaneously
<table> <?php $a = '{ "currency": { "id": "1", "code": "USD", "prefix": "$", "suffix": " USD", "format": "2", "rate": "1.00000" }, "pricing": { "com": { "categories": [ "Popular", "gTLD" ], "addons": { "dns": true, "email": true, "idprotect": true }, "group": "new", "register": { "1": "9.95", "2": "19.90", "3": "29.85" }, "transfer": { "1": "9.95", "2": "15.00", "3": "25.00" }, "renew": { "1": "9.95", "2": "15.00", "3": "25.00" } }, "net": { "categories": [ "Popular", "gTLD" ], "addons": { "dns": false, "email": false, "idprotect": false }, "group": "sale", "register": { "1": "9.00" }, "transfer": { "1": "11.95" }, "renew": { "1": "11.95" } }, "org": { "categories": [ "Popular", "gTLD" ], "addons": { "dns": false, "email": false, "idprotect": false }, "group": "hot", "register": { "1": "11.95" }, "transfer": { "1": "11.95" }, "renew": { "1": "11.95" } } } }'; $domains = json_decode($a); foreach ($domains->pricing as $tld => $attrs) { echo "<tr>"; echo "<td>".$tld."</td>"; echo "<td>1yr (".$attrs->register->{1}.")</td>"; echo "<td>1yr (".$attrs->transfer->{1}.")</td>"; echo "<td>1yr (".$attrs->renew->{1}.")</td>"; echo "</tr>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 31
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 31
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/H1qdm
function name:  (null)
number of ops:  33
compiled vars:  !0 = $a, !1 = $domains, !2 = $attrs, !3 = $tld
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Ctable%3E%0A'
    3     1        ASSIGN                                                   !0, '%7B%0A++++%22currency%22%3A+%7B%0A++++++++%22id%22%3A+%221%22%2C%0A++++++++%22code%22%3A+%22USD%22%2C%0A++++++++%22prefix%22%3A+%22%24%22%2C%0A++++++++%22suffix%22%3A+%22+USD%22%2C%0A++++++++%22format%22%3A+%222%22%2C%0A++++++++%22rate%22%3A+%221.00000%22%0A++++%7D%2C%0A++++%22pricing%22%3A+%7B%0A++++++++%22com%22%3A+%7B%0A++++++++++++%22categories%22%3A+%5B%0A++++++++++++++++%22Popular%22%2C%0A++++++++++++++++%22gTLD%22%0A++++++++++++%5D%2C%0A++++++++++++%22addons%22%3A+%7B%0A++++++++++++++++%22dns%22%3A+true%2C%0A++++++++++++++++%22email%22%3A+true%2C%0A++++++++++++++++%22idprotect%22%3A+true%0A++++++++++++%7D%2C%0A++++++++++++%22group%22%3A+%22new%22%2C%0A++++++++++++%22register%22%3A+%7B%0A++++++++++++++++%221%22%3A+%229.95%22%2C%0A++++++++++++++++%222%22%3A+%2219.90%22%2C%0A++++++++++++++++%223%22%3A+%2229.85%22%0A++++++++++++%7D%2C%0A++++++++++++%22transfer%22%3A+%7B%0A++++++++++++++++%221%22%3A+%229.95%22%2C%0A++++++++++++++++%222%22%3A+%2215.00%22%2C%0A++++++++++++++++%223%22%3A+%2225.00%22%0A++++++++++++%7D%2C%0A++++++++++++%22renew%22%3A+%7B%0A++++++++++++++++%221%22%3A+%229.95%22%2C%0A++++++++++++++++%222%22%3A+%2215.00%22%2C%0A++++++++++++++++%223%22%3A+%2225.00%22%0A++++++++++++%7D%0A++++++++%7D%2C%0A++++++++%22net%22%3A+%7B%0A++++++++++++%22categories%22%3A+%5B%0A++++++++++++++++%22Popular%22%2C%0A++++++++++++++++%22gTLD%22%0A++++++++++++%5D%2C%0A++++++++++++%22addons%22%3A+%7B%0A++++++++++++++++%22dns%22%3A+false%2C%0A++++++++++++++++%22email%22%3A+false%2C%0A++++++++++++++++%22idprotect%22%3A+false%0A++++++++++++%7D%2C%0A++++++++++++%22group%22%3A+%22sale%22%2C%0A++++++++++++%22register%22%3A+%7B%0A++++++++++++++++%221%22%3A+%229.00%22%0A++++++++++++%7D%2C%0A++++++++++++%22transfer%22%3A+%7B%0A++++++++++++++++%221%22%3A+%2211.95%22%0A++++++++++++%7D%2C%0A++++++++++++%22renew%22%3A+%7B%0A++++++++++++++++%221%22%3A+%2211.95%22%0A++++++++++++%7D%0A++++++++%7D%2C%0A++++++++%22org%22%3A+%7B%0A++++++++++++%22categories%22%3A+%5B%0A++++++++++++++++%22Popular%22%2C%0A++++++++++++++++%22gTLD%22%0A++++++++++++%5D%2C%0A++++++++++++%22addons%22%3A+%7B%0A++++++++++++++++%22dns%22%3A+false%2C%0A++++++++++++++++%22email%22%3A+false%2C%0A++++++++++++++++%22idprotect%22%3A+false%0A++++++++++++%7D%2C%0A++++++++++++%22group%22%3A+%22hot%22%2C%0A++++++++++++%22register%22%3A+%7B%0A++++++++++++++++%221%22%3A+%2211.95%22%0A++++++++++++%7D%2C%0A++++++++++++%22transfer%22%3A+%7B%0A++++++++++++++++%221%22%3A+%2211.95%22%0A++++++++++++%7D%2C%0A++++++++++++%22renew%22%3A+%7B%0A++++++++++++++++%221%22%3A+%2211.95%22%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D'
   84     2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   85     6        FETCH_OBJ_R                                      ~7      !1, 'pricing'
          7      > FE_RESET_R                                       $8      ~7, ->31
          8    > > FE_FETCH_R                                       ~9      $8, !2, ->31
          9    >   ASSIGN                                                   !3, ~9
   86    10        ECHO                                                     '%3Ctr%3E'
   87    11        CONCAT                                           ~11     '%3Ctd%3E', !3
         12        CONCAT                                           ~12     ~11, '%3C%2Ftd%3E'
         13        ECHO                                                     ~12
   88    14        FETCH_OBJ_R                                      ~13     !2, 'register'
         15        FETCH_OBJ_R                                      ~14     ~13, '1'
         16        CONCAT                                           ~15     '%3Ctd%3E1yr+%28', ~14
         17        CONCAT                                           ~16     ~15, '%29%3C%2Ftd%3E'
         18        ECHO                                                     ~16
   89    19        FETCH_OBJ_R                                      ~17     !2, 'transfer'
         20        FETCH_OBJ_R                                      ~18     ~17, '1'
         21        CONCAT                                           ~19     '%3Ctd%3E1yr+%28', ~18
         22        CONCAT                                           ~20     ~19, '%29%3C%2Ftd%3E'
         23        ECHO                                                     ~20
   90    24        FETCH_OBJ_R                                      ~21     !2, 'renew'
         25        FETCH_OBJ_R                                      ~22     ~21, '1'
         26        CONCAT                                           ~23     '%3Ctd%3E1yr+%28', ~22
         27        CONCAT                                           ~24     ~23, '%29%3C%2Ftd%3E'
         28        ECHO                                                     ~24
   91    29        ECHO                                                     '%3C%2Ftr%3E'
   85    30      > JMP                                                      ->8
         31    >   FE_FREE                                                  $8
   92    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.46 ms | 1005 KiB | 14 Q