3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(token_get_all(<<<EOD <?php \$string['message'] = 'construction'; $text = "this is a \${string['message']} that is valid".PHP_EOL; echo \$text; EOD ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7TqOI
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'token_get_all'
    4     2        ROPE_INIT                                     3  ~2      '%3C%3Fphp%0A%0A%24string%5B%27message%27%5D+%3D+%27construction%27%3B%0A'
    7     3        ROPE_ADD                                      1  ~2      ~2, !0
          4        ROPE_END                                      2  ~1      ~2, '+%3D+%22this+is+a+%24%7Bstring%5B%27message%27%5D%7D+that+is+valid%22.PHP_EOL%3B%0Aecho+%24text%3B%0A'
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.52 ms | 1394 KiB | 17 Q