3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract /** */ class /** */ C /** */ { } $php = <<<'EOT' <?php namespace AAA\BBB; use XXX\YYY; // Comment # Comment /* Comment */ /** * @doc */ abstract class C extends ZZZ implements III, JJJ { } EOT; for ($i = 258; $i < 409; ++$i) { $name = token_name($i); # print "$i: $name\n"; } $tokens = token_get_all($php); $readable = ''; foreach ($tokens as $token) { if (is_array($token)) { list($id, $str, $line) = $token; $name = token_name($id); $readable .= "<$id:$name>$str"; } else { $readable .= "<*>$str"; } } print $readable;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 43
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 43
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 39
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/mvRel
function name:  (null)
number of ops:  46
compiled vars:  !0 = $php, !1 = $i, !2 = $name, !3 = $tokens, !4 = $readable, !5 = $token, !6 = $id, !7 = $str, !8 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A%0Anamespace+AAA%5CBBB%3B%0A%0Ause+XXX%5CYYY%3B%0A%0A%2F%2F+Comment%0A%0A%23+Comment%0A%0A%2F%2A+Comment+%2A%2F%0A%0A%2F%2A%2A%0A+%2A+%40doc%0A+%2A%2F%0Aabstract+class+C+extends+ZZZ+implements+III%2C+JJJ+%7B%0A++++%0A%7D%0A'
   28     1        ASSIGN                                                   !1, 258
          2      > JMP                                                      ->8
   29     3    >   INIT_FCALL                                               'token_name'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $11     
          6        ASSIGN                                                   !2, $11
   28     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 409
          9      > JMPNZ                                                    ~14, ->3
   34    10    >   INIT_FCALL                                               'token_get_all'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $15     
         13        ASSIGN                                                   !3, $15
   36    14        ASSIGN                                                   !4, ''
   37    15      > FE_RESET_R                                       $18     !3, ->43
         16    > > FE_FETCH_R                                               $18, !5, ->43
   38    17    >   TYPE_CHECK                                  128          !5
         18      > JMPZ                                                     ~19, ->39
   39    19    >   QM_ASSIGN                                        ~20     !5
         20        FETCH_LIST_R                                     $21     ~20, 0
         21        ASSIGN                                                   !6, $21
         22        FETCH_LIST_R                                     $23     ~20, 1
         23        ASSIGN                                                   !7, $23
         24        FETCH_LIST_R                                     $25     ~20, 2
         25        ASSIGN                                                   !8, $25
         26        FREE                                                     ~20
   40    27        INIT_FCALL                                               'token_name'
         28        SEND_VAR                                                 !6
         29        DO_ICALL                                         $27     
         30        ASSIGN                                                   !2, $27
   41    31        ROPE_INIT                                     6  ~30     '%3C'
         32        ROPE_ADD                                      1  ~30     ~30, !6
         33        ROPE_ADD                                      2  ~30     ~30, '%3A'
         34        ROPE_ADD                                      3  ~30     ~30, !2
         35        ROPE_ADD                                      4  ~30     ~30, '%3E'
         36        ROPE_END                                      5  ~29     ~30, !7
         37        ASSIGN_OP                                     8          !4, ~29
         38      > JMP                                                      ->42
   44    39    >   NOP                                                      
         40        FAST_CONCAT                                      ~34     '%3C%2A%3E', !7
         41        ASSIGN_OP                                     8          !4, ~34
   37    42    > > JMP                                                      ->16
         43    >   FE_FREE                                                  $18
   48    44        ECHO                                                     !4
         45      > RETURN                                                   1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.83 ms | 1400 KiB | 17 Q