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

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0250.00698.97
7.3.0rc30.0240.01416.31
7.3.0beta10.0030.00612.83
7.3.0alpha10.0000.01112.82
7.2.60.0220.01116.84
7.2.00.0000.01219.38
7.1.200.0060.00615.99
7.1.100.0080.00318.51
7.1.70.0000.00817.18
7.1.60.0090.00319.40
7.1.50.0090.01517.04
7.1.00.0030.07722.42
7.0.200.0030.00617.02
7.0.140.0100.06322.19
7.0.60.0230.06721.71
7.0.50.0100.08017.93
7.0.40.0070.08020.49
7.0.30.0300.07320.21
7.0.20.0270.06720.35
7.0.10.0070.09320.18
7.0.00.0200.06720.22
5.6.280.0030.07320.79
5.6.210.0130.07720.77
5.6.200.0100.07718.20
5.6.190.0100.05320.61
5.6.180.3830.03320.47
5.6.170.0200.08320.55
5.6.160.0100.08020.46
5.6.150.0070.08718.14
5.6.140.0170.07018.16
5.6.130.0030.04318.18
5.6.120.0000.04321.13
5.6.110.0200.07321.09
5.6.100.0270.05321.02
5.6.90.0000.09020.98
5.6.80.0130.07020.40
5.5.350.0070.08020.44
5.5.340.0070.08317.96
5.5.330.0130.03320.13
5.5.320.0100.04720.31
5.5.310.0330.07720.19
5.5.300.0170.07017.93
5.5.290.0130.07317.98
5.5.280.0130.07720.76
5.5.270.0070.08020.84
5.5.260.0100.08320.80
5.5.250.0030.08720.47
5.5.240.0030.07720.25
5.4.450.0700.06019.30
5.4.440.0200.05319.30
5.4.430.0200.05719.30
5.4.420.0230.05319.32
5.4.410.0130.05018.97
5.4.400.0530.06018.77
5.4.390.0330.08018.78
5.4.380.0170.05018.63
5.4.370.0000.04318.61
5.4.360.0130.03318.77
5.4.350.0060.03512.05
5.4.340.0040.04512.05
5.4.320.0060.03512.53
5.4.310.0040.04112.53
5.4.300.0090.03212.54
5.4.290.0080.03512.53
5.4.280.0080.03212.43
5.4.270.0060.03612.43
5.4.260.0080.03912.43
5.4.250.0090.03912.43
5.4.240.0050.03912.43
5.4.230.0070.03812.42
5.4.220.0080.03412.41
5.4.210.0050.03712.42
5.4.200.0050.04412.42
5.4.190.0090.03612.41
5.4.180.0060.03612.41
5.4.170.0100.03112.43
5.4.160.0040.03712.42
5.4.150.0040.03712.41
5.4.140.0050.03712.10
5.4.130.0110.03712.09
5.4.120.0070.03412.04
5.4.110.0050.04212.04
5.4.100.0070.03912.04
5.4.90.0100.04412.04
5.4.80.0050.04912.05
5.4.70.0070.04012.04
5.4.60.0060.03512.04
5.4.50.0060.04612.04
5.4.40.0040.03912.03
5.4.30.0050.03612.02
5.4.20.0100.03612.02
5.4.10.0070.03712.02
5.4.00.0070.03311.52
5.3.290.0070.03612.80
5.3.280.0070.04412.71
5.3.270.0090.04112.73
5.3.260.0060.04712.73
5.3.250.0090.03812.73
5.3.240.0070.03512.73
5.3.230.0040.05312.72
5.3.220.0020.04212.69
5.3.210.0100.04412.69
5.3.200.0080.03312.68
5.3.190.0030.04112.69
5.3.180.0070.04212.68
5.3.170.0060.04012.68
5.3.160.0080.03712.69
5.3.150.0060.04412.68
5.3.140.0060.03512.68
5.3.130.0120.04212.66
5.3.120.0080.04412.67
5.3.110.0070.04112.67
5.3.100.0050.04012.16
5.3.90.0080.04112.14
5.3.80.0060.04012.13
5.3.70.0100.03712.13
5.3.60.0090.03612.11
5.3.50.0070.03512.06
5.3.40.0070.04512.06
5.3.30.0110.03212.02
5.3.20.0080.04011.80
5.3.10.0080.03711.77
5.3.00.0090.03311.76
5.2.170.0030.0329.19
5.2.160.0070.0319.19
5.2.150.0040.0329.19
5.2.140.0050.0389.18
5.2.130.0060.0389.15
5.2.120.0080.0289.14
5.2.110.0080.0369.15
5.2.100.0070.0289.15
5.2.90.0030.0299.14
5.2.80.0050.0319.14
5.2.70.0050.0319.15
5.2.60.0050.0469.10
5.2.50.0050.0379.07
5.2.40.0070.0339.05
5.2.30.0090.0409.02
5.2.20.0020.0319.01
5.2.10.0050.0308.93
5.2.00.0070.0348.79
5.1.60.0050.0238.08
5.1.50.0050.0248.08
5.1.40.0040.0288.05
5.1.30.0050.0318.40
5.1.20.0030.0328.43
5.1.10.0070.0268.15
5.1.00.0060.0248.15
5.0.50.0050.0246.63
5.0.40.0050.0176.49
5.0.30.0050.0356.30
5.0.20.0060.0256.27
5.0.10.0060.0196.25
5.0.00.0050.0346.24
4.4.90.0020.0174.78
4.4.80.0020.0164.75
4.4.70.0050.0194.76
4.4.60.0030.0194.76
4.4.50.0020.0254.77
4.4.40.0030.0304.71
4.4.30.0020.0174.76
4.4.20.0050.0204.85
4.4.10.0020.0204.85
4.4.00.0030.0264.76
4.3.110.0030.0204.67
4.3.100.0050.0154.66
4.3.90.0020.0174.63
4.3.80.0040.0294.59
4.3.70.0020.0204.63
4.3.60.0020.0214.63
4.3.50.0030.0264.63
4.3.40.0030.0274.54
4.3.30.0060.0203.30
4.3.20.0020.0213.28
4.3.10.0010.0163.23
4.3.00.0130.0237.29