3v4l.org

run code in 300+ PHP versions simultaneously
<?php $browser = $value = $page = ''; $_GET = [ 'browser' => 'my browser', 'version' => 'my version', 'page' => 'my page', ]; foreach($_GET as $key => $value) { if (strcmp($key, "browser")) { $browser = $value; } elseif (strcmp($key, "version")) { $version = $value; } elseif (strcmp($key, "page")) { $page = $value; } } echo <<<DEBUG Browser: $browser Version: $version Page: $page DEBUG ;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 30
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 30
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 29
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/QFSAl
function name:  (null)
number of ops:  39
compiled vars:  !0 = $browser, !1 = $value, !2 = $page, !3 = $key, !4 = $version
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~5      !2, ''
          1        ASSIGN                                           ~6      !1, ~5
          2        ASSIGN                                                   !0, ~6
    4     3        FETCH_W                      global              $8      '_GET'
          4        ASSIGN                                                   $8, <array>
   10     5        FETCH_R                      global              ~10     '_GET'
          6      > FE_RESET_R                                       $11     ~10, ->30
          7    > > FE_FETCH_R                                       ~12     $11, !1, ->30
          8    >   ASSIGN                                                   !3, ~12
   11     9        INIT_FCALL                                               'strcmp'
         10        SEND_VAR                                                 !3
         11        SEND_VAL                                                 'browser'
         12        DO_ICALL                                         $14     
         13      > JMPZ                                                     $14, ->16
   12    14    >   ASSIGN                                                   !0, !1
   11    15      > JMP                                                      ->29
   14    16    >   INIT_FCALL                                               'strcmp'
         17        SEND_VAR                                                 !3
         18        SEND_VAL                                                 'version'
         19        DO_ICALL                                         $16     
         20      > JMPZ                                                     $16, ->23
   15    21    >   ASSIGN                                                   !4, !1
   14    22      > JMP                                                      ->29
   17    23    >   INIT_FCALL                                               'strcmp'
         24        SEND_VAR                                                 !3
         25        SEND_VAL                                                 'page'
         26        DO_ICALL                                         $18     
         27      > JMPZ                                                     $18, ->29
   18    28    >   ASSIGN                                                   !2, !1
   10    29    > > JMP                                                      ->7
         30    >   FE_FREE                                                  $11
   23    31        ROPE_INIT                                     6  ~21     '++Browser%3A+'
         32        ROPE_ADD                                      1  ~21     ~21, !0
         33        ROPE_ADD                                      2  ~21     ~21, '%0A++Version%3A+'
   24    34        ROPE_ADD                                      3  ~21     ~21, !4
         35        ROPE_ADD                                      4  ~21     ~21, '%0A++Page%3A+'
   25    36        ROPE_END                                      5  ~20     ~21, !2
         37        ECHO                                                     ~20
   27    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.34 ms | 1010 KiB | 14 Q