3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constants = get_defined_constants(); $result = array_intersect_key($constants, array_flip(preg_grep('/^P(?:REG|CRE)_/', array_keys($constants)))); ksort($result); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aZLWH
function name:  (null)
number of ops:  25
compiled vars:  !0 = $constants, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_defined_constants'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    3     3        INIT_FCALL                                               'array_intersect_key'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'array_flip'
          6        INIT_FCALL                                               'preg_grep'
          7        SEND_VAL                                                 '%2F%5EP%28%3F%3AREG%7CCRE%29_%2F'
          8        INIT_FCALL                                               'array_keys'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                         $7      
         17        ASSIGN                                                   !1, $7
    4    18        INIT_FCALL                                               'ksort'
         19        SEND_REF                                                 !1
         20        DO_ICALL                                                 
    5    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.52 ms | 1399 KiB | 27 Q