3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo T_CATCH; foreach(token_get_all("<?php try{}catch(Exception $e){}finally{}") as $tok) { if(is_array($tok)) { echo token_name($tok[0]) . ": "; echo $tok[1] . "\n"; } else { echo $tok; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/gBjBf
function name:  (null)
number of ops:  25
compiled vars:  !0 = $e, !1 = $tok
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     350
    3     1        INIT_FCALL                                               'token_get_all'
          2        ROPE_INIT                                     3  ~3      '%3C%3Fphp+try%7B%7Dcatch%28Exception+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%29%7B%7Dfinally%7B%7D'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $5      
          7      > FE_RESET_R                                       $6      $5, ->23
          8    > > FE_FETCH_R                                               $6, !1, ->23
    4     9    >   TYPE_CHECK                                  128          !1
         10      > JMPZ                                                     ~7, ->21
    5    11    >   INIT_FCALL                                               'token_name'
         12        FETCH_DIM_R                                      ~8      !1, 0
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        CONCAT                                           ~10     $9, '%3A+'
         16        ECHO                                                     ~10
    6    17        FETCH_DIM_R                                      ~11     !1, 1
         18        CONCAT                                           ~12     ~11, '%0A'
         19        ECHO                                                     ~12
         20      > JMP                                                      ->22
    8    21    >   ECHO                                                     !1
    3    22    > > JMP                                                      ->8
         23    >   FE_FREE                                                  $6
   10    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.16 ms | 1396 KiB | 17 Q