3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from_Currency = "USD"; $to_Currency = "INR"; $amount = "18000"; $result = file_get_contents( 'http://www.google.com/ig/calculator?hl=en&q='.$amount.''.$from_Currency.'=?'.$to_Currency.'' ); $json = json_decode($result); echo $json['rhs'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kBpD8
function name:  (null)
number of ops:  20
compiled vars:  !0 = $from_Currency, !1 = $to_Currency, !2 = $amount, !3 = $result, !4 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'USD'
    3     1        ASSIGN                                                   !1, 'INR'
    4     2        ASSIGN                                                   !2, '18000'
    5     3        INIT_FCALL                                               'file_get_contents'
    6     4        CONCAT                                           ~8      'http%3A%2F%2Fwww.google.com%2Fig%2Fcalculator%3Fhl%3Den%26q%3D', !2
          5        CONCAT                                           ~9      ~8, ''
          6        CONCAT                                           ~10     ~9, !0
          7        CONCAT                                           ~11     ~10, '%3D%3F'
          8        CONCAT                                           ~12     ~11, !1
          9        CONCAT                                           ~13     ~12, ''
         10        SEND_VAL                                                 ~13
         11        DO_ICALL                                         $14     
    5    12        ASSIGN                                                   !3, $14
    9    13        INIT_FCALL                                               'json_decode'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $16     
         16        ASSIGN                                                   !4, $16
   10    17        FETCH_DIM_R                                      ~18     !4, 'rhs'
         18        ECHO                                                     ~18
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.6 ms | 1395 KiB | 17 Q