3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"GetCodeResult": { "Selling":"1000.67114", "Buying":"9000.65789" } }'; list($selling, $buying) = array_values(json_decode($json, true)['GetCodeResult']); echo $selling .PHP_EOL; echo $buying .PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T5GNg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $json, !1 = $selling, !2 = $buying
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22GetCodeResult%22%3A%0A%7B%0A%22Selling%22%3A%221000.67114%22%2C%0A%22Buying%22%3A%229000.65789%22%0A%7D%0A%7D'
   10     1        INIT_FCALL                                               'array_values'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $4      
          6        FETCH_DIM_R                                      ~5      $4, 'GetCodeResult'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        FETCH_LIST_R                                     $7      $6, 0
         10        ASSIGN                                                   !1, $7
         11        FETCH_LIST_R                                     $9      $6, 1
         12        ASSIGN                                                   !2, $9
         13        FREE                                                     $6
   12    14        CONCAT                                           ~11     !1, '%0A'
         15        ECHO                                                     ~11
   13    16        CONCAT                                           ~12     !2, '%0A'
         17        ECHO                                                     ~12
   14    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.07 ms | 1005 KiB | 15 Q