3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "queueType" : "send" , "payload" : ["post",{"template":"CS - Credit Granted","email":"cgomes+mktotest-userregiste@learnvest.com","vars":{"amount":"$100.00","userId":345144147,"firstName":"Grace"},"options":[]}]}'; $b = json_decode($json); list($method, $paylod) = $b; print_r($method); print_r($paylod);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/154ob
function name:  (null)
number of ops:  18
compiled vars:  !0 = $json, !1 = $b, !2 = $method, !3 = $paylod
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B+%22queueType%22+%3A+%22send%22+%2C+%22payload%22+%3A+%5B%22post%22%2C%7B%22template%22%3A%22CS+-+Credit+Granted%22%2C%22email%22%3A%22cgomes%2Bmktotest-userregiste%40learnvest.com%22%2C%22vars%22%3A%7B%22amount%22%3A%22%24100.00%22%2C%22userId%22%3A345144147%2C%22firstName%22%3A%22Grace%22%7D%2C%22options%22%3A%5B%5D%7D%5D%7D'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    7     5        QM_ASSIGN                                        ~7      !1
          6        FETCH_LIST_R                                     $8      ~7, 0
          7        ASSIGN                                                   !2, $8
          8        FETCH_LIST_R                                     $10     ~7, 1
          9        ASSIGN                                                   !3, $10
         10        FREE                                                     ~7
    9    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.82 ms | 1395 KiB | 17 Q