3v4l.org

run code in 300+ PHP versions simultaneously
<?php function name() { $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'https://graph.facebook.com/nike', CURLOPT_USERAGENT => 'write_code_online' )); // Send the request & save response to $resp $data = curl_exec($curl); // Close request to clear up some resources curl_close($curl); return json_parse($data)->likes; } echo name();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V5oEL
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'name'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V5oEL
function name:  name
number of ops:  26
compiled vars:  !0 = $curl, !1 = $data
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
    5     3        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
          4        SEND_VAR_EX                                              !0
    6     5        FETCH_CONSTANT                                   ~4      'CURLOPT_RETURNTRANSFER'
          6        INIT_ARRAY                                       ~5      1, ~4
    7     7        FETCH_CONSTANT                                   ~6      'CURLOPT_URL'
          8        ADD_ARRAY_ELEMENT                                ~5      'https%3A%2F%2Fgraph.facebook.com%2Fnike', ~6
    8     9        FETCH_CONSTANT                                   ~7      'CURLOPT_USERAGENT'
         10        ADD_ARRAY_ELEMENT                                ~5      'write_code_online', ~7
         11        SEND_VAL_EX                                              ~5
         12        DO_FCALL                                      0          
   11    13        INIT_FCALL_BY_NAME                                       'curl_exec'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $9      
         16        ASSIGN                                                   !1, $9
   13    17        INIT_FCALL_BY_NAME                                       'curl_close'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0          
   15    20        INIT_FCALL_BY_NAME                                       'json_parse'
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0  $12     
         23        FETCH_OBJ_R                                      ~13     $12, 'likes'
         24      > RETURN                                                   ~13
   16    25*     > RETURN                                                   null

End of function name

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.42 ms | 1400 KiB | 15 Q