3v4l.org

run code in 300+ PHP versions simultaneously
<?php $get_string = "TOKEN=EC%2d09F245458F168291J&TIMESTAMP=2015%2d08%2d29T08%3a22%3a55Z&CORRELATIONID=bf30a7057eaa1&ACK=Success&VERSION=78&BUILD=000000"; parse_str($get_string, $get_array); //print_r($get_array); // echo $get_array['ACK']; $params=['name'=>'John', 'surname'=>'Doe', 'age'=>36]; $defaults = array( CURLOPT_URL => 'http://myremoteservice/', CURLOPT_POST => true, CURLOPT_POSTFIELDS => $params, ); $ch = curl_init(); curl_setopt_array($ch, ($options + $defaults));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y03BZ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $get_string, !1 = $get_array, !2 = $params, !3 = $defaults, !4 = $ch, !5 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'TOKEN%3DEC%252d09F245458F168291J%26TIMESTAMP%3D2015%252d08%252d29T08%253a22%253a55Z%26CORRELATIONID%3Dbf30a7057eaa1%26ACK%3DSuccess%26VERSION%3D78%26BUILD%3D000000'
    5     1        INIT_FCALL                                               'parse_str'
          2        SEND_VAR                                                 !0
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
   20     5        ASSIGN                                                   !2, <array>
   22     6        FETCH_CONSTANT                                   ~9      'CURLOPT_URL'
          7        INIT_ARRAY                                       ~10     'http%3A%2F%2Fmyremoteservice%2F', ~9
   23     8        FETCH_CONSTANT                                   ~11     'CURLOPT_POST'
   22     9        ADD_ARRAY_ELEMENT                                ~10     <true>, ~11
   24    10        FETCH_CONSTANT                                   ~12     'CURLOPT_POSTFIELDS'
         11        ADD_ARRAY_ELEMENT                                ~10     !2, ~12
   21    12        ASSIGN                                                   !3, ~10
   26    13        INIT_FCALL_BY_NAME                                       'curl_init'
         14        DO_FCALL                                      0  $14     
         15        ASSIGN                                                   !4, $14
   27    16        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
         17        SEND_VAR_EX                                              !4
         18        ADD                                              ~16     !5, !3
         19        SEND_VAL_EX                                              ~16
         20        DO_FCALL                                      0          
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.5 ms | 1395 KiB | 15 Q