3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = json_decode('{ "promotionId": 8, "thirdPartyUserId": "pepsi_test_123", "platform": "xbl", "entitlementCounts": { "doublexp": 6, "loots" { "patch": 1, "playercard": 1, "cammo": 1 } } }'); $j = json_encode($i); echo $j;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uJfeV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%0A++++%22promotionId%22%3A+8%2C%0A++++%22thirdPartyUserId%22%3A+%22pepsi_test_123%22%2C%0A++++%22platform%22%3A+%22xbl%22%2C%0A++++%22entitlementCounts%22%3A+%7B%0A++++++++%22doublexp%22%3A+6%2C%0A++++++++%22loots%22+%7B%0A++++++++++++%22patch%22%3A+1%2C%0A++++++++++++%22playercard%22%3A+1%2C%0A++++++++++++%22cammo%22%3A+1%0A++++++++%7D%0A++++%7D%0A%7D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
   17     4        INIT_FCALL                                               'json_encode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   18     8        ECHO                                                     !1
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.98 ms | 1394 KiB | 17 Q