3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.google.com/a-url/that/returns/json'; $request = new WP_Http; // or use the $wp_http global $result = $request->request( $url ); $json = $result['body']; $data = json_decode( $json, true );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TMbbL
function name:  (null)
number of ops:  16
compiled vars:  !0 = $url, !1 = $request, !2 = $result, !3 = $json, !4 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.google.com%2Fa-url%2Fthat%2Freturns%2Fjson'
    4     1        NEW                                              $6      'WP_Http'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $6
    5     4        INIT_METHOD_CALL                                         !1, 'request'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $9      
          7        ASSIGN                                                   !2, $9
    6     8        FETCH_DIM_R                                      ~11     !2, 'body'
          9        ASSIGN                                                   !3, ~11
    8    10        INIT_FCALL                                               'json_decode'
         11        SEND_VAR                                                 !3
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !4, $13
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.62 ms | 1394 KiB | 15 Q