3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arg = array( 'auto_refresh' => '0', 'tags' => 'a,b,c'); foreach($arg as $k=>$v){ $finalArg.= $k.'='.$v.'&'; } $finalArg = substr($finalArg,0,-1); echo $finalArg;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/d7r8Z
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arg, !1 = $v, !2 = $k, !3 = $finalArg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $5      !0, ->9
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->9
          3    >   ASSIGN                                                   !2, ~6
    5     4        CONCAT                                           ~8      !2, '%3D'
          5        CONCAT                                           ~9      ~8, !1
          6        CONCAT                                           ~10     ~9, '%26'
          7        ASSIGN_OP                                     8          !3, ~10
    4     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $5
    8    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !3
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 -1
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
   10    16        ECHO                                                     !3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.67 ms | 1395 KiB | 15 Q