3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. Position 1 = 5, Position 2 = 22
Branch analysis from position: 5
Jump found. Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
Jump found. Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
Jump found. Position 1 = 21
Branch analysis from position: 21
Jump found. Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 18
Jump found. Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 22
Jump found. 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                                    7  ~5      !1
         7      > JMPZ                                                     ~5, ->18
   9     8    >   INIT_FCALL                                               'token_name'
         9        FETCH_DIM_R                                      $6      !1, 0
        10        SEND_VAR                                                 $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
        21    > > JMP                                                      ->5
        22    >   FE_FREE                                                  $4
        23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0