3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.8 ms | 1396 KiB | 19 Q