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); print_r(b); 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/Vg6bj
function name:  (null)
number of ops:  22
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
    6     5        INIT_FCALL                                               'print_r'
          6        FETCH_CONSTANT                                   ~7      'b'
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                                 
    8     9        QM_ASSIGN                                        ~9      !1
         10        FETCH_LIST_R                                     $10     ~9, 0
         11        ASSIGN                                                   !2, $10
         12        FETCH_LIST_R                                     $12     ~9, 1
         13        ASSIGN                                                   !3, $12
         14        FREE                                                     ~9
   10    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.76 ms | 1395 KiB | 17 Q