3v4l.org

run code in 500+ 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 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/2d6up
function name:  {closure:/in/2d6up:5}
number of ops:  12
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        FRAMELESS_ICALL_3                substr              ~2      !1, 0
          3        OP_DATA                                                      5
          4        IS_NOT_IDENTICAL                                     ~3      ~2, 'T_FMT'
          5      > JMPZ_EX                                              ~3      ~3, ->10
          6    >   FRAMELESS_ICALL_3                substr              ~4      !1, 0
          7        OP_DATA                                                      2
          8        IS_IDENTICAL                                         ~5      ~4, 'T_'
          9        BOOL                                                 ~3      ~5
         10    > > RETURN                                                       ~3
    7    11*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.24 ms | 486 KiB | 11 Q