3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['393451234567', '393479876543']; echo http_build_query(['recipients' => $array]); echo "\n---\n"; echo implode('&', substr_replace($array, 'recipients[]=', 0, 0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J1q2a
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'http_build_query'
          2        INIT_ARRAY                                       ~2      !0, 'recipients'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        ECHO                                                     $3
    7     6        ECHO                                                     '%0A---%0A'
    9     7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '%26'
          9        INIT_FCALL                                               'substr_replace'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'recipients%5B%5D%3D'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 0
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        ECHO                                                     $5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.14 ms | 1011 KiB | 16 Q