3v4l.org

run code in 300+ PHP versions simultaneously
<?php $src = <<<SRC class X { /** * @docblock1 */ public $x = "x", $y = 'y', /** @docblock2 */ $z = 'z' ; } SRC; var_dump(token_get_all($src));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9mi6L
function name:  (null)
number of ops:  15
compiled vars:  !0 = $src, !1 = $x, !2 = $y, !3 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ROPE_INIT                                     7  ~5      'class+X+%7B%0A++++%2F%2A%2A%0A+++++%2A+%40docblock1%0A+++++%2A%2F%0A++++public%0A++++++++'
    9     1        ROPE_ADD                                      1  ~5      ~5, !1
          2        ROPE_ADD                                      2  ~5      ~5, '+%3D+%22x%22%2C%0A++++++++'
   10     3        ROPE_ADD                                      3  ~5      ~5, !2
          4        ROPE_ADD                                      4  ~5      ~5, '+%3D+%27y%27%2C%0A++++++++%2F%2A%2A+%40docblock2+%2A%2F%0A++++++++'
   12     5        ROPE_ADD                                      5  ~5      ~5, !3
          6        ROPE_END                                      6  ~4      ~5, '+%3D+%27z%27%0A++++%3B%0A%7D'
    3     7        ASSIGN                                                   !0, ~4
   17     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'token_get_all'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $10     
         12        SEND_VAR                                                 $10
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.42 ms | 1394 KiB | 17 Q