3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = token_get_all("<?php $builder = new StdClass(); $builder->add('username', TextType::class, array('label' => 'form.username'))"); foreach ($a as $t) { if (isset($t[1])) { echo token_name($t[0]), "\n"; } else { echo $t, "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 24
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 24
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/Y76B0
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $builder, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'token_get_all'
          1        ROPE_INIT                                     5  ~5      '%3C%3Fphp+'
          2        ROPE_ADD                                      1  ~5      ~5, !1
          3        ROPE_ADD                                      2  ~5      ~5, '+%3D+new+StdClass%28%29%3B+'
          4        FETCH_OBJ_R                                      ~3      !1, 'add'
          5        ROPE_ADD                                      3  ~5      ~5, ~3
          6        ROPE_END                                      4  ~4      ~5, '%28%27username%27%2C+TextType%3A%3Aclass%2C+array%28%27label%27+%3D%3E+%27form.username%27%29%29'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !0, $8
    5    10      > FE_RESET_R                                       $10     !0, ->24
         11    > > FE_FETCH_R                                               $10, !2, ->24
    6    12    >   ISSET_ISEMPTY_DIM_OBJ                         0          !2, 1
         13      > JMPZ                                                     ~11, ->21
    7    14    >   INIT_FCALL                                               'token_name'
         15        FETCH_DIM_R                                      ~12     !2, 0
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                         $13     
         18        ECHO                                                     $13
         19        ECHO                                                     '%0A'
         20      > JMP                                                      ->23
    9    21    >   ECHO                                                     !2
         22        ECHO                                                     '%0A'
    5    23    > > JMP                                                      ->11
         24    >   FE_FREE                                                  $10
   11    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.58 ms | 1396 KiB | 17 Q