3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (token_get_all('<?php TRUE; ZEND_THREAD_SAFE;') as $t) { if (is_array($t)) { echo token_name($t[0]); } else { echo $t; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/TYH15
function name:  (null)
number of ops:  17
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'token_get_all'
          1        SEND_VAL                                                 '%3C%3Fphp+TRUE%3B%C2%A0ZEND_THREAD_SAFE%3B'
          2        DO_ICALL                                         $1      
          3      > FE_RESET_R                                       $2      $1, ->15
          4    > > FE_FETCH_R                                               $2, !0, ->15
          5    >   TYPE_CHECK                                  128          !0
          6      > JMPZ                                                     ~3, ->13
    3     7    >   INIT_FCALL                                               'token_name'
          8        FETCH_DIM_R                                      ~4      !0, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        ECHO                                                     $5
         12      > JMP                                                      ->14
    5    13    >   ECHO                                                     !0
    2    14    > > JMP                                                      ->4
         15    >   FE_FREE                                                  $2
    7    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.08 ms | 1395 KiB | 17 Q