3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = file_get_contents("https://sbux-card.azurewebsites.net/?card_number=XXXXXXXX&pin=YYYYYYY"); $json_a = json_decode($string, true); echo $json_a['bal']; echo $json_a['lastUpdated'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6uBmC
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $json_a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'https%3A%2F%2Fsbux-card.azurewebsites.net%2F%3Fcard_number%3DXXXXXXXX%26pin%3DYYYYYYY'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    4     9        FETCH_DIM_R                                      ~6      !1, 'bal'
         10        ECHO                                                     ~6
    5    11        FETCH_DIM_R                                      ~7      !1, 'lastUpdated'
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.46 ms | 1394 KiB | 17 Q