3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<PRE>'; $code = '<?php echo PHP_OS; ?>'; 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
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 26
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/OOvVO
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+PHP_OS%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                                  128          !1
          8      > JMPZ                                                     ~5, ->22
    6     9    >   INIT_FCALL                                               'token_name'
         10        FETCH_DIM_R                                      ~6      !1, 0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        CONCAT                                           ~8      $7, '%3A+'
         14        INIT_FCALL                                               'htmlentities'
         15        FETCH_DIM_R                                      ~9      !1, 1
         16        SEND_VAL                                                 ~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
    4    25    > > JMP                                                      ->6
         26    >   FE_FREE                                                  $4
   11    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.6 ms | 1396 KiB | 19 Q