3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cur = '{"base":"GBP","date":"2015-07-10","rates":{"AUD":2.0776,"BGN":2.7134,"BRL":4.9426,"CAD":1.9717,"CHF":1.4517,"CNY":9.6354,"CZK":37.629,"DKK":10.353,"HKD":12.028,"HRK":10.513,"HUF":431.48,"IDR":20618.02,"ILS":5.8442,"INR":98.381,"JPY":189.9,"KRW":1748.58,"MXN":24.375,"MYR":5.8873,"NOK":12.348,"NZD":2.2988,"PHP":69.989,"PLN":5.793,"RON":6.1662,"RUB":87.457,"SEK":13.055,"SGD":2.0914,"THB":52.651,"TRY":4.1337,"USD":1.5517,"ZAR":19.26,"EUR":1.3873}}'; $currency = json_decode($cur,true); var_dump($currency);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Zbuj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $cur, !1 = $currency
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22base%22%3A%22GBP%22%2C%22date%22%3A%222015-07-10%22%2C%22rates%22%3A%7B%22AUD%22%3A2.0776%2C%22BGN%22%3A2.7134%2C%22BRL%22%3A4.9426%2C%22CAD%22%3A1.9717%2C%22CHF%22%3A1.4517%2C%22CNY%22%3A9.6354%2C%22CZK%22%3A37.629%2C%22DKK%22%3A10.353%2C%22HKD%22%3A12.028%2C%22HRK%22%3A10.513%2C%22HUF%22%3A431.48%2C%22IDR%22%3A20618.02%2C%22ILS%22%3A5.8442%2C%22INR%22%3A98.381%2C%22JPY%22%3A189.9%2C%22KRW%22%3A1748.58%2C%22MXN%22%3A24.375%2C%22MYR%22%3A5.8873%2C%22NOK%22%3A12.348%2C%22NZD%22%3A2.2988%2C%22PHP%22%3A69.989%2C%22PLN%22%3A5.793%2C%22RON%22%3A6.1662%2C%22RUB%22%3A87.457%2C%22SEK%22%3A13.055%2C%22SGD%22%3A2.0914%2C%22THB%22%3A52.651%2C%22TRY%22%3A4.1337%2C%22USD%22%3A1.5517%2C%22ZAR%22%3A19.26%2C%22EUR%22%3A1.3873%7D%7D'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.34 ms | 1394 KiB | 17 Q