3v4l.org

run code in 300+ PHP versions simultaneously
<?php $feed_url = 'http://www.boi.org.il/currency.xml'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $feed_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); $feedContent = curl_exec($curl); curl_close($curl); echo $feedContent; exit();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/W2I29
function name:  (null)
number of ops:  32
compiled vars:  !0 = $feed_url, !1 = $curl, !2 = $feedContent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.boi.org.il%2Fcurrency.xml'
    7     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !1, $4
    8     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !1
          6        FETCH_CONSTANT                                   ~6      'CURLOPT_URL'
          7        SEND_VAL_EX                                              ~6
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    9    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !1
         12        FETCH_CONSTANT                                   ~8      'CURLOPT_RETURNTRANSFER'
         13        SEND_VAL_EX                                              ~8
         14        SEND_VAL_EX                                              <true>
         15        DO_FCALL                                      0          
   10    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !1
         18        FETCH_CONSTANT                                   ~10     'CURLOPT_FOLLOWLOCATION'
         19        SEND_VAL_EX                                              ~10
         20        SEND_VAL_EX                                              <true>
         21        DO_FCALL                                      0          
   11    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0  $12     
         25        ASSIGN                                                   !2, $12
   12    26        INIT_FCALL_BY_NAME                                       'curl_close'
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0          
   14    29        ECHO                                                     !2
   15    30      > EXIT                                                     
         31*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.88 ms | 1399 KiB | 13 Q