3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.93 ms | 1388 KiB | 17 Q