3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ConverCurrency(){ $google_url = "http://rate-exchange.appspot.com/currency?from=USD&to=PKR"; $result = file_get_contents($google_url); return $result; } echo $converted_value = ConverCurrency(); //output {"to": "PKR", "rate": 104.328, "from": "USD"} ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m3OpN
function name:  (null)
number of ops:  5
compiled vars:  !0 = $converted_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'convercurrency'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                           ~2      !0, $1
          3        ECHO                                                     ~2
   17     4      > RETURN                                                   1

Function convercurrency:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m3OpN
function name:  ConverCurrency
number of ops:  7
compiled vars:  !0 = $google_url, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Frate-exchange.appspot.com%2Fcurrency%3Ffrom%3DUSD%26to%3DPKR'
    6     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    8     5      > RETURN                                                   !1
   11     6*     > RETURN                                                   null

End of function convercurrency

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.82 ms | 1397 KiB | 16 Q