3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo '<PRE>'; $code = '<?php echo true; ?>'; foreach(token_get_all($code) as $c){ if(is_array($c)){ print(token_name($c[0]).": ".htmlentities($c[1])."<br>\n"); } else { print("$c<br>\n"); } }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 6, Position 2 = 26
Branch analysis from position: 6
Jump found. Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
Jump found. Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
Jump found. Position 1 = 25
Branch analysis from position: 25
Jump found. Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 22
Jump found. Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 26
Jump found. Position 1 = -2
Branch analysis from position: 26
filename:       /in/TnoXS
function name:  (null)
number of ops:  28
compiled vars:  !0 = $code, !1 = $c
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ECHO                                                     '%3CPRE%3E'
   3     1        ASSIGN                                                   !0, '%3C%3Fphp+echo+true%3B+%3F%3E'
   4     2        INIT_FCALL                                               'token_get_all'
         3        SEND_VAR                                                 !0
         4        DO_ICALL                                         $3      
         5      > FE_RESET_R                                       $4      $3, ->26
         6    > > FE_FETCH_R                                               $4, !1, ->26
   5     7    >   TYPE_CHECK                                    7  ~5      !1
         8      > JMPZ                                                     ~5, ->22
   6     9    >   INIT_FCALL                                               'token_name'
        10        FETCH_DIM_R                                      $6      !1, 0
        11        SEND_VAR                                                 $6
        12        DO_ICALL                                         $7      
        13        CONCAT                                           ~8      $7, '%3A+'
        14        INIT_FCALL                                               'htmlentities'
        15        FETCH_DIM_R                                      $9      !1, 1
        16        SEND_VAR                                                 $9
        17        DO_ICALL                                         $10     
        18        CONCAT                                           ~11     ~8, $10
        19        CONCAT                                           ~12     ~11, '%3Cbr%3E%0A'
        20        ECHO                                                     ~12
        21      > JMP                                                      ->25
   9    22    >   NOP                                                      
        23        FAST_CONCAT                                      ~13     !1, '%3Cbr%3E%0A'
        24        ECHO                                                     ~13
        25    > > JMP                                                      ->6
        26    >   FE_FREE                                                  $4
        27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0