3v4l.org

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

Generated using Vulcan Logic Dumper, using php 7.3.0