3v4l.org

run code in 300+ PHP versions simultaneously
<?php function newGetTranslationFilesPattern($langcode = NULL) { // The file name matches: drupal-[release version].[language code].po // When provided the $langcode is use as language code. If not provided all // language codes will match. return '!drupal-[0-9a-z\.-]+' . (!empty($langcode) ? '\.' . preg_quote($langcode, '!') : '') . '\.po$!'; } function oldGetTranslationFilesPattern($langcode = NULL) { // The file name matches: drupal-[release version].[language code].po // When provided the $langcode is use as language code. If not provided all // language codes will match. return '!drupal-[0-9a-z\.-]+\.' . (!empty($langcode) ? preg_quote($langcode, '!') : '[^\.]+') . '\.po$!'; } print "pcre.jit = " . ini_get('pcre.jit') . "\n"; print "Old: " . preg_match(oldGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n"; print "New: " . preg_match(newGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n\n"; ini_set('pcre.jit', 0); print "pcre.jit = " . ini_get('pcre.jit') . "\n"; print "Old: " . preg_match(oldGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n"; print "New: " . preg_match(newGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n\n"; ini_set('pcre.jit', 1); print "pcre.jit = " . ini_get('pcre.jit') . "\n"; print "Old: " . preg_match(oldGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n"; print "New: " . preg_match(newGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n\n";
Output for git.master, git.master_jit, rfc.property-hooks
pcre.jit = 1 Old: 1 New: 1 pcre.jit = 0 Old: 1 New: 1 pcre.jit = 1 Old: 1 New: 1

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
72.59 ms | 401 KiB | 8 Q