3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "credit_card": { "cvc": "123", "expiry": { "month": "12", "year": "2019" }, "name": "Julian", "number": "5123450000000008", "token": null }, "amount": "10", "currency": "AUD", "gateway": { "line_of_business": "eWallet", "service": "default", "username": null }, "external_id": "my external id", "reference": "julian test", "remitter_name": null, "request_id": "1529561070", "statement_description": null, "security_id": null }'; $array = json_decode($json, true); function test_print($item, $key) { echo "$key holds $item\n"; } array_walk_recursive($array, 'test_print');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nrhEc
function name:  (null)
number of ops:  11
compiled vars:  !0 = $json, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++%22credit_card%22%3A+%7B%0A++++%22cvc%22%3A+%22123%22%2C%0A++++%22expiry%22%3A+%7B%0A++++++%22month%22%3A+%2212%22%2C%0A++++++%22year%22%3A+%222019%22%0A++++%7D%2C%0A++++%22name%22%3A+%22Julian%22%2C%0A++++%22number%22%3A+%225123450000000008%22%2C%0A++++%22token%22%3A+null%0A++%7D%2C%0A++%22amount%22%3A+%2210%22%2C%0A++%22currency%22%3A+%22AUD%22%2C%0A++%22gateway%22%3A+%7B%0A++++%22line_of_business%22%3A+%22eWallet%22%2C%0A++++%22service%22%3A+%22default%22%2C%0A++++%22username%22%3A+null%0A++%7D%2C%0A++%22external_id%22%3A+%22my+external+id%22%2C%0A++%22reference%22%3A+%22julian+test%22%2C%0A++%22remitter_name%22%3A+null%2C%0A++%22request_id%22%3A+%221529561070%22%2C%0A++%22statement_description%22%3A+null%2C%0A++%22security_id%22%3A+null%0A%7D'
   29     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   36     6        INIT_FCALL                                               'array_walk_recursive'
          7        SEND_REF                                                 !1
          8        SEND_VAL                                                 'test_print'
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function test_print:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nrhEc
function name:  test_print
number of ops:  8
compiled vars:  !0 = $item, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   33     2        ROPE_INIT                                     4  ~3      !1
          3        ROPE_ADD                                      1  ~3      ~3, '+holds+'
          4        ROPE_ADD                                      2  ~3      ~3, !0
          5        ROPE_END                                      3  ~2      ~3, '%0A'
          6        ECHO                                                     ~2
   34     7      > RETURN                                                   null

End of function test_print

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1396 KiB | 17 Q