3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constants = preg_grep('/^T_/', array_keys(get_defined_constants())); $constants = array_combine($constants, array_map('constant', $constants)); asort($constants); var_dump(array_slice($constants, 0, 1, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uSrMN
function name:  (null)
number of ops:  32
compiled vars:  !0 = $constants
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_grep'
          1        SEND_VAL                                                 '%2F%5ET_%2F'
          2        INIT_FCALL                                               'array_keys'
          3        INIT_FCALL                                               'get_defined_constants'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    4    10        INIT_FCALL                                               'array_combine'
         11        SEND_VAR                                                 !0
         12        INIT_FCALL                                               'array_map'
         13        SEND_VAL                                                 'constant'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
    5    19        INIT_FCALL                                               'asort'
         20        SEND_REF                                                 !0
         21        DO_ICALL                                                 
    6    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'array_slice'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 0
         26        SEND_VAL                                                 1
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $9      
         29        SEND_VAR                                                 $9
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.08 ms | 1399 KiB | 29 Q