3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = "define('DIRNAME_BLOCKS', 'blocks'); define('DIRNAME_BACKUPS', 'backups'); define('DIRNAME_PAGES', 'single_pages'); define('DIRNAME_VIEWS', 'views'); define('DIRNAME_PACKAGES', 'packages'); define('DIRNAME_MODELS', 'models'); define('DIRNAME_ATTRIBUTES', 'attributes'); define('DIRNAME_AUTHENTICATION', 'authentication'); define('DIRNAME_LIBRARIES', 'libraries'); define('DIRNAME_RESPONSE', 'response'); define('DIRNAME_PERMISSIONS', 'permission'); define('DIRNAME_WORKFLOW', 'workflow'); define('DIRNAME_WORKFLOW_ASSIGNMENTS', 'assignments'); define('DIRNAME_REQUESTS', 'requests'); define('DIRNAME_KEYS', 'keys'); define('DIRNAME_PAGE_TYPES', 'page_types'); define('DIRNAME_PAGE_THEME', 'page_theme'); define('DIRNAME_PAGE_THEME_CUSTOM', 'custom'); define('DIRNAME_ELEMENTS', 'elements'); define('DIRNAME_LANGUAGES', 'languages'); define('DIRNAME_JOBS', 'jobs'); define('DIRNAME_DASHBOARD', 'dashboard'); define('DIRNAME_ELEMENTS_HEADER_MENU', 'header_menu'); define('DIRNAME_DASHBOARD_MODULES', 'modules'); define('DIRNAME_MAIL_TEMPLATES', 'mail'); define('DIRNAME_THEMES', 'themes'); define('DIRNAME_THEMES_CORE', 'core'); define('DIRNAME_TOOLS', 'tools'); define('DIRNAME_BLOCK_TOOLS', 'tools'); define('DIRNAME_BLOCK_TEMPLATES', 'templates'); define('DIRNAME_BLOCK_TEMPLATES_COMPOSER', 'composer'); define('DIRNAME_CSS', 'css'); define('DIRNAME_CLASSES', 'src'); define('DIRNAME_PREVIEW', 'preview'); define('DIRNAME_GROUP', 'group'); define('DIRNAME_GROUP_AUTOMATION', 'automation'); define('DIRNAME_JAVASCRIPT', 'js'); define('DIRNAME_IMAGES', 'images'); define('DIRNAME_HELPERS', 'helpers'); define('DIRNAME_USER_POINTS', 'user_point'); define('DIRNAME_ACTIONS', 'actions'); define('DIRNAME_SYSTEM_TYPES', 'types'); define('DIRNAME_SYSTEM_CAPTCHA', 'captcha'); define('DIRNAME_SYSTEM_ANTISPAM', 'antispam'); define('DIRNAME_SYSTEM', 'system'); define('DIRNAME_PANELS', 'panels'); define('DIRNAME_CONTROLLERS', 'controllers'); define('DIRNAME_PAGE_CONTROLLERS', 'single_page'); define('DIRNAME_GATHERING', 'gathering'); define('DIRNAME_GATHERING_DATA_SOURCES', 'data_sources'); define('DIRNAME_GATHERING_ITEM_TEMPLATES', 'templates'); define('DIRNAME_COMPOSER', 'composer'); define('DIRNAME_ELEMENTS_PAGE_TYPES_PUBLISH_TARGET_TYPES', 'target_types'); define('DIRNAME_COMPOSER_ELEMENTS_CONTROLS', 'controls'); define('DIRNAME_ELEMENTS_PAGE_TYPES_PUBLISH_TARGET_TYPES_FORM', 'form'); define('DIRNAME_CONVERSATIONS', 'conversation'); define('DIRNAME_CONVERSATION_EDITOR', 'editor'); define('DIRNAME_VENDOR', 'vendor'); define('DIRNAME_LANGUAGES_SITE_INTERFACE', 'site'); define('DIRNAME_STYLE_CUSTOMIZER', 'style_customizer'); define('DIRNAME_STYLE_CUSTOMIZER_TYPES', 'types'); define('DIRNAME_STYLE_CUSTOMIZER_PRESETS', 'presets'); define('DIRNAME_FILE_STORAGE_LOCATION_TYPES', 'storage_location_types'); define('REL_DIR_FILES_INCOMING', '/incoming'); define('REL_DIR_FILES_THUMBNAILS', '/thumbnails');"; $d = explode("\n", $d); echo implode("\n", array_map(function($val) { return strtolower(preg_replace("/^define\\('DIRNAME_(.+?)', '(.+?)'\\).*$/", '\'\1\' => \'\2\'', $val)); }, $d));
based on VHgpr
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/NbrAU
function name:  (null)
number of ops:  17
compiled vars:  !0 = $d
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  67     0  E >   ASSIGN                                                   !0, 'define%28%27DIRNAME_BLOCKS%27%2C+%27blocks%27%29%3B%0Adefine%28%27DIRNAME_BACKUPS%27%2C+%27backups%27%29%3B%0Adefine%28%27DIRNAME_PAGES%27%2C+%27single_pages%27%29%3B%0Adefine%28%27DIRNAME_VIEWS%27%2C+%27views%27%29%3B%0Adefine%28%27DIRNAME_PACKAGES%27%2C+%27packages%27%29%3B%0Adefine%28%27DIRNAME_MODELS%27%2C+%27models%27%29%3B%0Adefine%28%27DIRNAME_ATTRIBUTES%27%2C+%27attributes%27%29%3B%0Adefine%28%27DIRNAME_AUTHENTICATION%27%2C+%27authentication%27%29%3B%0Adefine%28%27DIRNAME_LIBRARIES%27%2C+%27libraries%27%29%3B%0Adefine%28%27DIRNAME_RESPONSE%27%2C+%27response%27%29%3B%0Adefine%28%27DIRNAME_PERMISSIONS%27%2C+%27permission%27%29%3B%0Adefine%28%27DIRNAME_WORKFLOW%27%2C+%27workflow%27%29%3B%0Adefine%28%27DIRNAME_WORKFLOW_ASSIGNMENTS%27%2C+%27assignments%27%29%3B%0Adefine%28%27DIRNAME_REQUESTS%27%2C+%27requests%27%29%3B%0Adefine%28%27DIRNAME_KEYS%27%2C+%27keys%27%29%3B%0Adefine%28%27DIRNAME_PAGE_TYPES%27%2C+%27page_types%27%29%3B%0Adefine%28%27DIRNAME_PAGE_THEME%27%2C+%27page_theme%27%29%3B%0Adefine%28%27DIRNAME_PAGE_THEME_CUSTOM%27%2C+%27custom%27%29%3B%0Adefine%28%27DIRNAME_ELEMENTS%27%2C+%27elements%27%29%3B%0Adefine%28%27DIRNAME_LANGUAGES%27%2C+%27languages%27%29%3B%0Adefine%28%27DIRNAME_JOBS%27%2C+%27jobs%27%29%3B%0Adefine%28%27DIRNAME_DASHBOARD%27%2C+%27dashboard%27%29%3B%0Adefine%28%27DIRNAME_ELEMENTS_HEADER_MENU%27%2C+%27header_menu%27%29%3B%0Adefine%28%27DIRNAME_DASHBOARD_MODULES%27%2C+%27modules%27%29%3B%0Adefine%28%27DIRNAME_MAIL_TEMPLATES%27%2C+%27mail%27%29%3B%0Adefine%28%27DIRNAME_THEMES%27%2C+%27themes%27%29%3B%0Adefine%28%27DIRNAME_THEMES_CORE%27%2C+%27core%27%29%3B%0Adefine%28%27DIRNAME_TOOLS%27%2C+%27tools%27%29%3B%0Adefine%28%27DIRNAME_BLOCK_TOOLS%27%2C+%27tools%27%29%3B%0Adefine%28%27DIRNAME_BLOCK_TEMPLATES%27%2C+%27templates%27%29%3B%0Adefine%28%27DIRNAME_BLOCK_TEMPLATES_COMPOSER%27%2C+%27composer%27%29%3B%0Adefine%28%27DIRNAME_CSS%27%2C+%27css%27%29%3B%0Adefine%28%27DIRNAME_CLASSES%27%2C+%27src%27%29%3B%0Adefine%28%27DIRNAME_PREVIEW%27%2C+%27preview%27%29%3B%0Adefine%28%27DIRNAME_GROUP%27%2C+%27group%27%29%3B%0Adefine%28%27DIRNAME_GROUP_AUTOMATION%27%2C+%27automation%27%29%3B%0Adefine%28%27DIRNAME_JAVASCRIPT%27%2C+%27js%27%29%3B%0Adefine%28%27DIRNAME_IMAGES%27%2C+%27images%27%29%3B%0Adefine%28%27DIRNAME_HELPERS%27%2C+%27helpers%27%29%3B%0Adefine%28%27DIRNAME_USER_POINTS%27%2C+%27user_point%27%29%3B%0Adefine%28%27DIRNAME_ACTIONS%27%2C+%27actions%27%29%3B%0Adefine%28%27DIRNAME_SYSTEM_TYPES%27%2C+%27types%27%29%3B%0Adefine%28%27DIRNAME_SYSTEM_CAPTCHA%27%2C+%27captcha%27%29%3B%0Adefine%28%27DIRNAME_SYSTEM_ANTISPAM%27%2C+%27antispam%27%29%3B%0Adefine%28%27DIRNAME_SYSTEM%27%2C+%27system%27%29%3B%0Adefine%28%27DIRNAME_PANELS%27%2C+%27panels%27%29%3B%0Adefine%28%27DIRNAME_CONTROLLERS%27%2C+%27controllers%27%29%3B%0Adefine%28%27DIRNAME_PAGE_CONTROLLERS%27%2C+%27single_page%27%29%3B%0Adefine%28%27DIRNAME_GATHERING%27%2C+%27gathering%27%29%3B%0Adefine%28%27DIRNAME_GATHERING_DATA_SOURCES%27%2C+%27data_sources%27%29%3B%0Adefine%28%27DIRNAME_GATHERING_ITEM_TEMPLATES%27%2C+%27templates%27%29%3B%0Adefine%28%27DIRNAME_COMPOSER%27%2C+%27composer%27%29%3B%0Adefine%28%27DIRNAME_ELEMENTS_PAGE_TYPES_PUBLISH_TARGET_TYPES%27%2C+%27target_types%27%29%3B%0Adefine%28%27DIRNAME_COMPOSER_ELEMENTS_CONTROLS%27%2C+%27controls%27%29%3B%0Adefine%28%27DIRNAME_ELEMENTS_PAGE_TYPES_PUBLISH_TARGET_TYPES_FORM%27%2C+%27form%27%29%3B%0Adefine%28%27DIRNAME_CONVERSATIONS%27%2C+%27conversation%27%29%3B%0Adefine%28%27DIRNAME_CONVERSATION_EDITOR%27%2C+%27editor%27%29%3B%0Adefine%28%27DIRNAME_VENDOR%27%2C+%27vendor%27%29%3B%0Adefine%28%27DIRNAME_LANGUAGES_SITE_INTERFACE%27%2C+%27site%27%29%3B%0Adefine%28%27DIRNAME_STYLE_CUSTOMIZER%27%2C+%27style_customizer%27%29%3B%0Adefine%28%27DIRNAME_STYLE_CUSTOMIZER_TYPES%27%2C+%27types%27%29%3B%0Adefine%28%27DIRNAME_STYLE_CUSTOMIZER_PRESETS%27%2C+%27presets%27%29%3B%0Adefine%28%27DIRNAME_FILE_STORAGE_LOCATION_TYPES%27%2C+%27storage_location_types%27%29%3B%0Adefine%28%27REL_DIR_FILES_INCOMING%27%2C+%27%2Fincoming%27%29%3B%0Adefine%28%27REL_DIR_FILES_THUMBNAILS%27%2C+%27%2Fthumbnails%27%29%3B'
  70     1        INIT_FCALL                                               'explode'
         2        SEND_VAL                                                 '%0A'
         3        SEND_VAR                                                 !0
         4        DO_ICALL                                         $2      
         5        ASSIGN                                                   !0, $2
  72     6        INIT_FCALL                                               'implode'
         7        SEND_VAL                                                 '%0A'
         8        INIT_FCALL                                               'array_map'
         9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNbrAU0x7fe6b05c8c21'
  74    10        SEND_VAL                                                 ~4
        11        SEND_VAR                                                 !0
        12        DO_ICALL                                         $5      
        13        SEND_VAR                                                 $5
        14        DO_ICALL                                         $6      
        15        ECHO                                                     $6
        16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FNbrAU0x7fe6b05c8c21:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/NbrAU
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $val
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  72     0  E >   RECV                                             !0      
  73     1        INIT_FCALL                                               'strtolower'
         2        INIT_FCALL                                               'preg_replace'
         3        SEND_VAL                                                 '%2F%5Edefine%5C%28%27DIRNAME_%28.%2B%3F%29%27%2C+%27%28.%2B%3F%29%27%5C%29.%2A%24%2F'
         4        SEND_VAL                                                 '%27%5C1%27+%3D%3E+%27%5C2%27'
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                         $1      
         7        SEND_VAR                                                 $1
         8        DO_ICALL                                         $2      
         9      > RETURN                                                   $2
  74    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNbrAU0x7fe6b05c8c21

Generated using Vulcan Logic Dumper, using php 7.2.0