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]).": ".htmlentities($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 = 25
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 25
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/pDLra
function name:  (null)
number of ops:  27
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, ->25
          5    > > FE_FETCH_R                                               $4, !1, ->25
    7     6    >   TYPE_CHECK                                  128          !1
          7      > JMPZ                                                     ~5, ->21
    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+'
         13        INIT_FCALL                                               'htmlentities'
         14        FETCH_DIM_R                                      ~9      !1, 1
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     ~8, $10
         18        CONCAT                                           ~12     ~11, '%0A'
         19        ECHO                                                     ~12
         20      > JMP                                                      ->24
   15    21    >   NOP                                                      
         22        FAST_CONCAT                                      ~13     !1, '%0A'
         23        ECHO                                                     ~13
    5    24    > > JMP                                                      ->5
         25    >   FE_FREE                                                  $4
   18    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.32 ms | 1396 KiB | 19 Q