3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.8 ms | 1396 KiB | 17 Q