3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = '<?php echo 0x00+2;'; foreach(token_get_all($code) as $c){ if(is_array($c)){ print(token_name($c[0]).": \t".$c[1]."\n"); } else { print("$c\n"); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 22
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/CfKsN
function name:  (null)
number of ops:  24
compiled vars:  !0 = $code, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fphp+echo+0x00%2B2%3B'
    5     1        INIT_FCALL                                               'token_get_all'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4      > FE_RESET_R                                       $4      $3, ->22
          5    > > FE_FETCH_R                                               $4, !1, ->22
    7     6    >   TYPE_CHECK                                  128          !1
          7      > JMPZ                                                     ~5, ->18
    9     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+%09'
         13        FETCH_DIM_R                                      ~9      !1, 1
         14        CONCAT                                           ~10     ~8, ~9
         15        CONCAT                                           ~11     ~10, '%0A'
         16        ECHO                                                     ~11
         17      > JMP                                                      ->21
   15    18    >   NOP                                                      
         19        FAST_CONCAT                                      ~12     !1, '%0A'
         20        ECHO                                                     ~12
    5    21    > > JMP                                                      ->5
         22    >   FE_FREE                                                  $4
   18    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.89 ms | 1387 KiB | 17 Q