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/ZkjcW
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'token_get_all'
    4     2        SEND_VAL                                                 '%3C%3Fphp%0A%0A%24string%5B%27message%27%5D+%3D+%27construction%27%3B%0A%24text+%3D+%22this+is+a+%24%7Bstring%5B%27message%27%5D%7D+that+is+valid%22.PHP_EOL%3B%0Aecho+%24text%3B%0A'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   11     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.7 ms | 939 KiB | 18 Q