3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testCode = '<?php class {CLASS}'; try { var_dump(token_get_all($testCode, TOKEN_PARSE)); } catch (Throwable $ex) { echo "INVALID CODE:\n\n$ex"; } // var_dump(eval($testCode));
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: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VFDrG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $testCode, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fphp+class+%7BCLASS%7D'
    6     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'token_get_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
          8      > JMP                                                      ->13
    8     9  E > > CATCH                                       last         'Throwable'
    9    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~5      'INVALID+CODE%3A%0A%0A', !1
         12        ECHO                                                     ~5
   12    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.49 ms | 1002 KiB | 15 Q