3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $temp = '{ "$descriptor": "Sage Accounts 50 | commodity - Enter your company name", "$url": "http://fd-server-sage:5493/sdata/accounts50/GCRM/{C28ECAEF-EACD-4F64-BC72-0AE1F1CB3447}/commodities", "$totalResults": 1141, "$startIndex": 1, "$itemsPerPage": 1141, "$resources": [ { "$url": "http://fd-server-sage:5493/sdata/accounts50/GCRM/{C28ECAEF-EACD-4F64-BC72-0AE1F1CB3447}/commodities(663f63d9-81e1-4489-8b40-14a65deb305d)?format=atomentry", "$uuid": "663f63d9-81e1-4489-8b40-14a65deb305d", "$httpStatus": "OK", "$descriptor": "", "freeStock": 1.0, "onOrder": 0.0, "salesPrice": 0.0 } ] }'; $temp = trim($temp,''); try{ $data = json_decode($temp); } catch(Exception $e){ echo ($e); } echo $data;
based on 2eUkL
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EiFjF
function name:  (null)
number of ops:  15
compiled vars:  !0 = $temp, !1 = $data, !2 = $e
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   ASSIGN                                                   !0, '%C3%AF%C2%BB%C2%BF%7B%0A++%22%24descriptor%22%3A+%22Sage+Accounts+50+%7C+commodity+-+Enter+your+company+name%22%2C%0A++%22%24url%22%3A+%22http%3A%2F%2Ffd-server-sage%3A5493%2Fsdata%2Faccounts50%2FGCRM%2F%7BC28ECAEF-EACD-4F64-BC72-0AE1F1CB3447%7D%2Fcommodities%22%2C%0A++%22%24totalResults%22%3A+1141%2C%0A++%22%24startIndex%22%3A+1%2C%0A++%22%24itemsPerPage%22%3A+1141%2C%0A++%22%24resources%22%3A+%5B%0A++++%7B%0A++++++%22%24url%22%3A+%22http%3A%2F%2Ffd-server-sage%3A5493%2Fsdata%2Faccounts50%2FGCRM%2F%7BC28ECAEF-EACD-4F64-BC72-0AE1F1CB3447%7D%2Fcommodities%28663f63d9-81e1-4489-8b40-14a65deb305d%29%3Fformat%3Datomentry%22%2C%0A++++++%22%24uuid%22%3A+%22663f63d9-81e1-4489-8b40-14a65deb305d%22%2C%0A++++++%22%24httpStatus%22%3A+%22OK%22%2C%0A++++++%22%24descriptor%22%3A+%22%22%2C%0A++++++%22freeStock%22%3A+1.0%2C%0A++++++%22onOrder%22%3A+0.0%2C%0A++++++%22salesPrice%22%3A+0.0%0A++++%7D%0A%5D%0A%7D'
  23     1        INIT_FCALL                                               'trim'
         2        SEND_VAR                                                 !0
         3        SEND_VAL                                                 '%C3%AF%C2%BB%C2%BF'
         4        DO_ICALL                                         $4      
         5        ASSIGN                                                   !0, $4
  27     6        INIT_FCALL                                               'json_decode'
         7        SEND_VAR                                                 !0
         8        DO_ICALL                                         $6      
         9        ASSIGN                                                   !1, $6
        10      > JMP                                                      ->13
  29    11  E > > CATCH                                                    'Exception', !2
  30    12    >   ECHO                                                     !2
  34    13    >   ECHO                                                     !1
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0