3v4l.org

run code in 300+ PHP versions simultaneously
<?php // create curl resource $ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "http://api.wordreference.com/0.8/50874/json/fren/bonjour"); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // $output contains the output string $output = curl_exec($ch); // close curl resource to free up system resources curl_close($ch); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L6SK8
function name:  (null)
number of ops:  23
compiled vars:  !0 = $ch, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    6     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~4      'CURLOPT_URL'
          6        SEND_VAL_EX                                              ~4
          7        SEND_VAL_EX                                              'http%3A%2F%2Fapi.wordreference.com%2F0.8%2F50874%2Fjson%2Ffren%2Fbonjour'
          8        DO_FCALL                                      0          
    9     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~6      'CURLOPT_RETURNTRANSFER'
         12        SEND_VAL_EX                                              ~6
         13        SEND_VAL_EX                                              1
         14        DO_FCALL                                      0          
   12    15        INIT_FCALL_BY_NAME                                       'curl_exec'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $8      
         18        ASSIGN                                                   !1, $8
   15    19        INIT_FCALL_BY_NAME                                       'curl_close'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0          
   16    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.5 ms | 1393 KiB | 13 Q