3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = token_get_all("<?php class RegistrationFormType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $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 = 12, Position 2 = 25
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 25
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/Mo7Is
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a, !1 = $builder, !2 = $options, !3 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'token_get_all'
          1        ROPE_INIT                                     7  ~5      '%3C%3Fphp%0A%0Aclass+RegistrationFormType+extends+AbstractType%0A%7B%0A++++public+function+buildForm%28FormBuilderInterface+'
    7     2        ROPE_ADD                                      1  ~5      ~5, !1
          3        ROPE_ADD                                      2  ~5      ~5, '%2C+array+'
          4        ROPE_ADD                                      3  ~5      ~5, !2
          5        ROPE_ADD                                      4  ~5      ~5, '%29%0A++++%7B%0A++++++++'
    9     6        ROPE_ADD                                      5  ~5      ~5, !1
          7        ROPE_END                                      6  ~4      ~5, '%0A++++++++++++-%3Eadd%28%27username%27%2C+TextType%3A%3Aclass%2C+array%28%27label%27+%3D%3E+%27form.username%27%29%29%0A++++++++%3B%0A++++%7D%0A%7D%0A'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $9      
    3    10        ASSIGN                                                   !0, $9
   16    11      > FE_RESET_R                                       $11     !0, ->25
         12    > > FE_FETCH_R                                               $11, !3, ->25
   17    13    >   ISSET_ISEMPTY_DIM_OBJ                         0          !3, 1
         14      > JMPZ                                                     ~12, ->22
   18    15    >   INIT_FCALL                                               'token_name'
         16        FETCH_DIM_R                                      ~13     !3, 0
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ECHO                                                     $14
         20        ECHO                                                     '%0A'
         21      > JMP                                                      ->24
   20    22    >   ECHO                                                     !3
         23        ECHO                                                     '%0A'
   16    24    > > JMP                                                      ->12
         25    >   FE_FREE                                                  $11
   22    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.38 ms | 1396 KiB | 17 Q