3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tokenConstants = array_filter( get_defined_constants(), function ($value, $key) { return substr($key, 0, 5) !== 'T_FMT' && substr($key, 0, 2) === 'T_'; }, ARRAY_FILTER_USE_BOTH ); asort($tokenConstants); echo 'Token | Value' . PHP_EOL; echo '------------------------------ | -----' . PHP_EOL; foreach ($tokenConstants as $tokenConstant => $value) { printf("%-30s | %s\n", $tokenConstant, $value); }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/2d6up
function name:  (null)
number of ops:  25
compiled vars:  !0 = $tokenConstants, !1 = $value, !2 = $tokenConstant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_filter'
    4     1        INIT_FCALL                                               'get_defined_constants'
          2        DO_ICALL                                         $3      
          3        SEND_VAR                                                 $3
    5     4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
    7     5        SEND_VAL                                                 ~4
    8     6        SEND_VAL                                                 1
    3     7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !0, $5
   11     9        INIT_FCALL                                               'asort'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
   13    12        ECHO                                                     'Token++++++++++++++++++++++++++%7C+Value%0A'
   14    13        ECHO                                                     '------------------------------+%7C+-----%0A'
   15    14      > FE_RESET_R                                       $8      !0, ->23
         15    > > FE_FETCH_R                                       ~9      $8, !1, ->23
         16    >   ASSIGN                                                   !2, ~9
   16    17        INIT_FCALL                                               'printf'
         18        SEND_VAL                                                 '%25-30s+%7C+%25s%0A'
         19        SEND_VAR                                                 !2
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
   15    22      > JMP                                                      ->15
         23    >   FE_FREE                                                  $8
   17    24      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/2d6up
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 5
          6        DO_ICALL                                         $2      
          7        IS_NOT_IDENTICAL                                 ~3      $2, 'T_FMT'
          8      > JMPZ_EX                                          ~3      ~3, ->16
          9    >   INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $4      
         14        IS_IDENTICAL                                     ~5      $4, 'T_'
         15        BOOL                                             ~3      ~5
         16    > > RETURN                                                   ~3
    7    17*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.44 ms | 1007 KiB | 18 Q