3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(get_defined_constants(true)); $constants = array_filter(get_defined_constants(true)['intl'], function($name){ return strpos('CHAR_CATEGORY_', $name) !== false; }); IntlChar::enumCharTypes(function($start, $end, $type) { printf("U+%04x through U+%04x are in category %d\n", $start, $end, $constants[$type]); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LJtt9
function name:  (null)
number of ops:  21
compiled vars:  !0 = $constants
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'get_defined_constants'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'array_filter'
          7        INIT_FCALL                                               'get_defined_constants'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $3      
         10        FETCH_DIM_R                                      ~4      $3, 'intl'
         11        SEND_VAL                                                 ~4
         12        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FLJtt9%3A4%240'
    6    13        SEND_VAL                                                 ~5
         14        DO_ICALL                                         $6      
    4    15        ASSIGN                                                   !0, $6
    8    16        INIT_STATIC_METHOD_CALL                                  'IntlChar', 'enumCharTypes'
         17        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FLJtt9%3A8%241'
   10    18        SEND_VAL_EX                                              ~8
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FLJtt9%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LJtt9
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strpos'
          2        SEND_VAL                                                 'CHAR_CATEGORY_'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        TYPE_CHECK                                  1018  ~2      $1
          6      > RETURN                                                   ~2
    6     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FLJtt9%3A4%240

Function %00%7Bclosure%7D%2Fin%2FLJtt9%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LJtt9
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $start, !1 = $end, !2 = $type, !3 = $constants
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    9     3        INIT_FCALL                                               'printf'
          4        SEND_VAL                                                 'U%2B%2504x+through+U%2B%2504x+are+in+category+%25d%0A'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        FETCH_DIM_R                                      ~4      !3, !2
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
   10    10      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FLJtt9%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.04 ms | 1400 KiB | 23 Q