3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* if ($cgiMode) { $query = ""; if (!empty($_GET)) { // superglobals are always set foreach ($_GET as $k => $v) { // if empty, this won't iterate $query .= " $k"; if ($v != "") { $query .= "=$v"; } } } $query = ltrim($query); $argv = explode(' ', $query); $argc = count($argv); // declared but never used $_SERVER['argv'] = $argv; } */ if ($cgiMode) { $_SERVER['argv'] = []; foreach ($_GET as $k => $v) { $_SERVER['argv'][] = $k . ($v ? "={$v}" : ""); } $_SERVER['argc'] = count($_SERVER['argv']); // assuming this is actually needed }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 27
Branch analysis from position: 1
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 27
filename:       /in/1PXPg
function name:  (null)
number of ops:  28
compiled vars:  !0 = $cgiMode, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > JMPZ                                                     !0, ->27
   22     1    >   FETCH_W                      global              $3      '_SERVER'
          2        ASSIGN_DIM                                               $3, 'argv'
          3        OP_DATA                                                  <array>
   23     4        FETCH_R                      global              ~5      '_GET'
          5      > FE_RESET_R                                       $6      ~5, ->20
          6    > > FE_FETCH_R                                       ~7      $6, !1, ->20
          7    >   ASSIGN                                                   !2, ~7
   24     8      > JMPZ                                                     !1, ->13
          9    >   NOP                                                      
         10        FAST_CONCAT                                      ~12     '%3D', !1
         11        QM_ASSIGN                                        ~13     ~12
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~13     ''
         14    >   CONCAT                                           ~14     !2, ~13
         15        FETCH_W                      global              $9      '_SERVER'
         16        FETCH_DIM_W                                      $10     $9, 'argv'
         17        ASSIGN_DIM                                               $10
         18        OP_DATA                                                  ~14
   23    19      > JMP                                                      ->6
         20    >   FE_FREE                                                  $6
   26    21        FETCH_R                      global              ~17     '_SERVER'
         22        FETCH_DIM_R                                      ~18     ~17, 'argv'
         23        COUNT                                            ~19     ~18
         24        FETCH_W                      global              $15     '_SERVER'
         25        ASSIGN_DIM                                               $15, 'argc'
         26        OP_DATA                                                  ~19
   27    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.88 ms | 1386 KiB | 13 Q