3v4l.org

run code in 300+ PHP versions simultaneously
<?php const MADNESS = <<<EOM yield // this comment doesn't make sense, but hey, why not? /* the blank line above doesn't make sense either, as well as this comment */ /* and thinking about it – */ // why not go batshit crazy with this? /* he */ from gen2(); EOM; var_dump(token_get_all(MADNESS)[0][1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dKDcs
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'MADNESS', '++++yield+%2F%2F+this+comment+doesn%27t+make+sense%2C+but+hey%2C+why+not%3F%0A%0A++++%2F%2A+the+blank+line+above+doesn%27t+make+sense+either%2C+as+well+as+this+comment+%2A%2F%0A%0A++++%2F%2A+and+thinking+about+it+%E2%80%93+%2A%2F+%2F%2F+why+not+go+batshit+crazy+with+this%3F+%2F%2A+he+%2A%2F%0A%0A++++from+gen2%28%29%3B'
   13     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'token_get_all'
          3        FETCH_CONSTANT                                   ~0      'MADNESS'
          4        SEND_VAL                                                 ~0
          5        DO_ICALL                                         $1      
          6        FETCH_DIM_R                                      ~2      $1, 0
          7        FETCH_DIM_R                                      ~3      ~2, 1
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.74 ms | 1443 KiB | 15 Q