3v4l.org

run code in 300+ PHP versions simultaneously
<?php "${@eval('phpinfo();')}"; $tokens = token_get_all('<?php $a = "{$phpinfo()}";'); foreach ($tokens as $token) { if (is_array($token)) echo (token_name($token[0]) . ': "' . $token[1] . '"'."\n"); else echo ('"' . $token . '"'."\n"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 30
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 30
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 25
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 = 11
Branch analysis from position: 11
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/QBXSs
function name:  (null)
number of ops:  32
compiled vars:  !0 = $tokens, !1 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BEGIN_SILENCE                                    ~2      
          1        INCLUDE_OR_EVAL                                  $3      'phpinfo%28%29%3B', EVAL
          2        END_SILENCE                                              ~2
          3        FETCH_R                      local               ~4      $3
          4        CAST                                          6  ~5      ~4
          5        FREE                                                     ~5
    3     6        INIT_FCALL                                               'token_get_all'
          7        SEND_VAL                                                 '%3C%3Fphp+%24a+%3D+%22%7B%24phpinfo%28%29%7D%22%3B'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !0, $6
    4    10      > FE_RESET_R                                       $8      !0, ->30
         11    > > FE_FETCH_R                                               $8, !1, ->30
    5    12    >   TYPE_CHECK                                  128          !1
         13      > JMPZ                                                     ~9, ->25
    6    14    >   INIT_FCALL                                               'token_name'
         15        FETCH_DIM_R                                      ~10     !1, 0
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     $11, '%3A+%22'
         19        FETCH_DIM_R                                      ~13     !1, 1
         20        CONCAT                                           ~14     ~12, ~13
         21        CONCAT                                           ~15     ~14, '%22'
         22        CONCAT                                           ~16     ~15, '%0A'
         23        ECHO                                                     ~16
         24      > JMP                                                      ->29
    8    25    >   CONCAT                                           ~17     '%22', !1
         26        CONCAT                                           ~18     ~17, '%22'
         27        CONCAT                                           ~19     ~18, '%0A'
         28        ECHO                                                     ~19
    4    29    > > JMP                                                      ->11
         30    >   FE_FREE                                                  $8
    9    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.24 ms | 1396 KiB | 17 Q