3v4l.org

run code in 500+ PHP versions simultaneously
<?php const A = 1; token_get_all('<?php const A = ;'); print "Tokenized\n"; try { token_get_all('<?php const A = ;', TOKEN_PARSE); print "Parsed\n"; } catch (Error $e) { print "Not parsed\n"; } eval('const A = 1;');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0mFSS
function name:  (null)
number of ops:  15
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                                'A', 1
    5     1        INIT_FCALL                                                   'token_get_all'
          2        SEND_VAL                                                     '%3C%3Fphp+const+A+%3D+%3B'
          3        DO_ICALL                                                     
    6     4        ECHO                                                         'Tokenized%0A'
    9     5        INIT_FCALL                                                   'token_get_all'
          6        SEND_VAL                                                     '%3C%3Fphp+const+A+%3D+%3B'
          7        SEND_VAL                                                     1
          8        DO_ICALL                                                     
   10     9        ECHO                                                         'Parsed%0A'
         10      > JMP                                                          ->13
   11    11  E > > CATCH                                           last         'Error'
   12    12    >   ECHO                                                         'Not+parsed%0A'
   15    13    >   INCLUDE_OR_EVAL                                              'const+A+%3D+1%3B', EVAL
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.36 ms | 478 KiB | 8 Q