3v4l.org

run code in 300+ PHP versions simultaneously
<?php "{$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/aV88E
function name:  (null)
number of ops:  30
compiled vars:  !0 = $phpinfo, !1 = $tokens, !2 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_DYNAMIC_CALL                                        !0
          1        DO_FCALL                                      0  $3      
          2        CAST                                          6  ~4      $3
          3        FREE                                                     ~4
    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                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8      > FE_RESET_R                                       $7      !1, ->28
          9    > > FE_FETCH_R                                               $7, !2, ->28
    5    10    >   TYPE_CHECK                                  128          !2
         11      > JMPZ                                                     ~8, ->23
    6    12    >   INIT_FCALL                                               'token_name'
         13        FETCH_DIM_R                                      ~9      !2, 0
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     $10, '%3A+%22'
         17        FETCH_DIM_R                                      ~12     !2, 1
         18        CONCAT                                           ~13     ~11, ~12
         19        CONCAT                                           ~14     ~13, '%22'
         20        CONCAT                                           ~15     ~14, '%0A'
         21        ECHO                                                     ~15
         22      > JMP                                                      ->27
    8    23    >   CONCAT                                           ~16     '%22', !2
         24        CONCAT                                           ~17     ~16, '%22'
         25        CONCAT                                           ~18     ~17, '%0A'
         26        ECHO                                                     ~18
    4    27    > > JMP                                                      ->9
         28    >   FE_FREE                                                  $7
    9    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.68 ms | 1396 KiB | 17 Q