3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL, "http://www.gatesfoundation.org/services/gfo/search.ashx"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, "{\"freeTextQuery\":\"wested\",\"fieldQueries\":\"(@gfotopics==\\\"College-Ready\\\") and (@gfomediatype==\\\"Grant\\\")\",\"facetsToRender\":[\"gfocategories\",\"gfotopics\",\"gfoyear\",\"gforegions\"],\"page\":\"1\",\"resultsPerPage\":\"12\",\"sortBy\":\"gfodate\",\"sortDirection\":\"desc\"}"); curl_exec ($curl); curl_close ($curl); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/40sn0
function name:  (null)
number of ops:  28
compiled vars:  !0 = $curl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
    3     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~3      'CURLOPT_URL'
          6        SEND_VAL_EX                                              ~3
          7        SEND_VAL_EX                                              'http%3A%2F%2Fwww.gatesfoundation.org%2Fservices%2Fgfo%2Fsearch.ashx'
          8        DO_FCALL                                      0          
    4     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~5      'CURLOPT_POST'
         12        SEND_VAL_EX                                              ~5
         13        SEND_VAL_EX                                              1
         14        DO_FCALL                                      0          
    5    15        INIT_FCALL_BY_NAME                                       'curl_setopt'
         16        SEND_VAR_EX                                              !0
         17        FETCH_CONSTANT                                   ~7      'CURLOPT_POSTFIELDS'
         18        SEND_VAL_EX                                              ~7
         19        SEND_VAL_EX                                              '%7B%22freeTextQuery%22%3A%22wested%22%2C%22fieldQueries%22%3A%22%28%40gfotopics%3D%3D%5C%22College-Ready%5C%22%29+and+%28%40gfomediatype%3D%3D%5C%22Grant%5C%22%29%22%2C%22facetsToRender%22%3A%5B%22gfocategories%22%2C%22gfotopics%22%2C%22gfoyear%22%2C%22gforegions%22%5D%2C%22page%22%3A%221%22%2C%22resultsPerPage%22%3A%2212%22%2C%22sortBy%22%3A%22gfodate%22%2C%22sortDirection%22%3A%22desc%22%7D'
         20        DO_FCALL                                      0          
    6    21        INIT_FCALL_BY_NAME                                       'curl_exec'
         22        SEND_VAR_EX                                              !0
         23        DO_FCALL                                      0          
    7    24        INIT_FCALL_BY_NAME                                       'curl_close'
         25        SEND_VAR_EX                                              !0
         26        DO_FCALL                                      0          
    8    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.54 ms | 1395 KiB | 13 Q