3v4l.org

run code in 300+ PHP versions simultaneously
<?php $get = file_get_contents("https://www.google.com/finance/converter?a=$amount&from=$from&to=$to"); $get = explode("<span class=bld>",$get); $get = explode("</span>",$get[1]); $converted_amount = preg_replace("/[^0-9\.]/", null, $get[0]); return round($converted_amount);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IG2Dm
function name:  (null)
number of ops:  33
compiled vars:  !0 = $get, !1 = $amount, !2 = $from, !3 = $to, !4 = $converted_amount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        ROPE_INIT                                     6  ~6      'https%3A%2F%2Fwww.google.com%2Ffinance%2Fconverter%3Fa%3D'
          2        ROPE_ADD                                      1  ~6      ~6, !1
          3        ROPE_ADD                                      2  ~6      ~6, '%26from%3D'
          4        ROPE_ADD                                      3  ~6      ~6, !2
          5        ROPE_ADD                                      4  ~6      ~6, '%26to%3D'
          6        ROPE_END                                      5  ~5      ~6, !3
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !0, $9
    4    10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%3Cspan+class%3Dbld%3E'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !0, $11
    5    15        INIT_FCALL                                               'explode'
         16        SEND_VAL                                                 '%3C%2Fspan%3E'
         17        FETCH_DIM_R                                      ~13     !0, 1
         18        SEND_VAL                                                 ~13
         19        DO_ICALL                                         $14     
         20        ASSIGN                                                   !0, $14
    6    21        INIT_FCALL                                               'preg_replace'
         22        SEND_VAL                                                 '%2F%5B%5E0-9%5C.%5D%2F'
         23        SEND_VAL                                                 null
         24        FETCH_DIM_R                                      ~16     !0, 0
         25        SEND_VAL                                                 ~16
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !4, $17
   11    28        INIT_FCALL                                               'round'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                         $19     
         31      > RETURN                                                   $19
         32*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.36 ms | 1396 KiB | 21 Q