3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = http_build_query( array( 'criteria' => sprintf('(customerId=="%d")', 6777777), 'text' => 'test', 'audio' => 'won', 'badge' => 123, ) ); //echo $t; $str ='OK=4:FAIL=0'; parse_str(str_replace(':', '&', $str), $tst); print_r($tst);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tOGi9
function name:  (null)
number of ops:  26
compiled vars:  !0 = $t, !1 = $str, !2 = $tst
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'http_build_query'
    5     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%28customerId%3D%3D%22%25d%22%29'
          3        SEND_VAL                                                 6777777
          4        DO_ICALL                                         $3      
          5        INIT_ARRAY                                       ~4      $3, 'criteria'
    6     6        ADD_ARRAY_ELEMENT                                ~4      'test', 'text'
    7     7        ADD_ARRAY_ELEMENT                                ~4      'won', 'audio'
    8     8        ADD_ARRAY_ELEMENT                                ~4      123, 'badge'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
    3    11        ASSIGN                                                   !0, $5
   14    12        ASSIGN                                                   !1, 'OK%3D4%3AFAIL%3D0'
   15    13        INIT_FCALL                                               'parse_str'
         14        INIT_FCALL                                               'str_replace'
         15        SEND_VAL                                                 '%3A'
         16        SEND_VAL                                                 '%26'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        SEND_REF                                                 !2
         21        DO_ICALL                                                 
   16    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.61 ms | 1395 KiB | 23 Q