3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content=array(); $custom_fields=array(); $lat="30.3"; $lng="113.22"; $username="Fred"; $password="FooBar"; $gps=array("latitude"=>"$lat","longitude"=>"$lng"); $custom_fields[]=array("key"=>"_post_location", "value"=>$gps); $content['post_title']="the title"; $content['post_status']='publish'; $content['post_content']="the content"; $content['custom_fields']=$custom_fields; $request = xmlrpc_encode_request( "wp.newPost", array( 0, $username, $password, $content)); echo $request; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/agbCg
function name:  (null)
number of ops:  34
compiled vars:  !0 = $content, !1 = $custom_fields, !2 = $lat, !3 = $lng, !4 = $username, !5 = $password, !6 = $gps, !7 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, '30.3'
    6     3        ASSIGN                                                   !3, '113.22'
    7     4        ASSIGN                                                   !4, 'Fred'
    8     5        ASSIGN                                                   !5, 'FooBar'
    9     6        CAST                                          6  ~14     !2
          7        INIT_ARRAY                                       ~15     ~14, 'latitude'
          8        CAST                                          6  ~16     !3
          9        ADD_ARRAY_ELEMENT                                ~15     ~16, 'longitude'
         10        ASSIGN                                                   !6, ~15
   11    11        INIT_ARRAY                                       ~19     '_post_location', 'key'
         12        ADD_ARRAY_ELEMENT                                ~19     !6, 'value'
         13        ASSIGN_DIM                                               !1
         14        OP_DATA                                                  ~19
   12    15        ASSIGN_DIM                                               !0, 'post_title'
         16        OP_DATA                                                  'the+title'
   13    17        ASSIGN_DIM                                               !0, 'post_status'
         18        OP_DATA                                                  'publish'
   14    19        ASSIGN_DIM                                               !0, 'post_content'
         20        OP_DATA                                                  'the+content'
   15    21        ASSIGN_DIM                                               !0, 'custom_fields'
         22        OP_DATA                                                  !1
   16    23        INIT_FCALL_BY_NAME                                       'xmlrpc_encode_request'
         24        SEND_VAL_EX                                              'wp.newPost'
         25        INIT_ARRAY                                       ~24     0
         26        ADD_ARRAY_ELEMENT                                ~24     !4
         27        ADD_ARRAY_ELEMENT                                ~24     !5
         28        ADD_ARRAY_ELEMENT                                ~24     !0
         29        SEND_VAL_EX                                              ~24
         30        DO_FCALL                                      0  $25     
         31        ASSIGN                                                   !7, $25
   18    32        ECHO                                                     !7
   20    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.18 ms | 1395 KiB | 13 Q