3v4l.org

run code in 500+ PHP versions simultaneously
<?php const MADNESS = <<<EOM <?php 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; $comments = token_get_all("<?php" . substr(token_get_all(MADNESS)[2][1], 5, -4)); array_shift($comments); // drop <?php var_dump($comments);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8eAiV
function name:  (null)
number of ops:  21
compiled vars:  !0 = $comments
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                                'MADNESS', '%3C%3Fphp%0A++++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'
   14     1        INIT_FCALL                                                   'token_get_all'
          2        INIT_FCALL                                                   'token_get_all'
          3        FETCH_CONSTANT                                       ~1      'MADNESS'
          4        SEND_VAL                                                     ~1
          5        DO_ICALL                                             $2      
          6        FETCH_DIM_R                                          ~3      $2, 2
          7        FETCH_DIM_R                                          ~4      ~3, 1
          8        FRAMELESS_ICALL_3                substr              ~5      ~4, 5
          9        OP_DATA                                                      -4
         10        CONCAT                                               ~6      '%3C%3Fphp', ~5
         11        SEND_VAL                                                     ~6
         12        DO_ICALL                                             $7      
         13        ASSIGN                                                       !0, $7
   15    14        INIT_FCALL                                                   'array_shift'
         15        SEND_REF                                                     !0
         16        DO_ICALL                                                     
   16    17        INIT_FCALL                                                   'var_dump'
         18        SEND_VAR                                                     !0
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.47 ms | 1653 KiB | 16 Q