3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['a' => 'n%20n']; foreach($data as $k => $v) { print urlencode(urldecode($k)) . '=' . urlencode(urldecode($v))."\n"; } print http_build_query($data)."\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 21
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 21
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/PH2o6
function name:  (null)
number of ops:  28
compiled vars:  !0 = $data, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $4      !0, ->21
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->21
          3    >   ASSIGN                                                   !2, ~5
    6     4        INIT_FCALL                                               'urlencode'
          5        INIT_FCALL                                               'urldecode'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $7      
          8        SEND_VAR                                                 $7
          9        DO_ICALL                                         $8      
         10        CONCAT                                           ~9      $8, '%3D'
         11        INIT_FCALL                                               'urlencode'
         12        INIT_FCALL                                               'urldecode'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                         $11     
         17        CONCAT                                           ~12     ~9, $11
         18        CONCAT                                           ~13     ~12, '%0A'
         19        ECHO                                                     ~13
    5    20      > JMP                                                      ->2
         21    >   FE_FREE                                                  $4
    9    22        INIT_FCALL                                               'http_build_query'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $14     
         25        CONCAT                                           ~15     $14, '%0A'
         26        ECHO                                                     ~15
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.36 ms | 1395 KiB | 19 Q