3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "<?php\n"; $s .= "echo 1"; var_dump(token_get_all($s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZKiUa
function name:  (null)
number of ops:  9
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A'
    4     1        ASSIGN_OP                                     8          !0, 'echo+1'
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'token_get_all'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.93 ms | 1398 KiB | 17 Q