3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isInternalConstantDeprecatedFx = function (string $const) { $isDeprecated = false; $origHandler = set_error_handler(function (int $no, string $message) use (&$isDeprecated): bool { if ($no === E_DEPRECATED /* || $no === E_USER_DEPRECATED */) { $isDeprecated = true; } return true; }); try { constant($const); } finally { if ($origHandler !== null) { set_error_handler($origHandler); } } return $isDeprecated; }; $deprecatedConstants = []; foreach (get_defined_constants(true) as $groupKey => $groupConstants) { if ($groupKey === 'user') { continue; } foreach ($groupConstants as $k => $v) { if ($isInternalConstantDeprecatedFx($k)) { $deprecatedConstants[] = $k; } } } print_r($deprecatedConstants);
Output for git.master, git.master_jit
Array ( [0] => FILTER_SANITIZE_STRING [1] => FILTER_SANITIZE_STRIPPED [2] => MT_RAND_PHP [3] => ASSERT_ACTIVE [4] => ASSERT_CALLBACK [5] => ASSERT_BAIL [6] => ASSERT_WARNING [7] => ASSERT_EXCEPTION [8] => FILE_TEXT [9] => FILE_BINARY [10] => U_MULTIPLE_DECIMAL_SEPERATORS )
Output for rfc.property-hooks
Array ( [0] => FILTER_SANITIZE_STRING [1] => FILTER_SANITIZE_STRIPPED [2] => FILE_TEXT [3] => FILE_BINARY [4] => U_MULTIPLE_DECIMAL_SEPERATORS )

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:
36.6 ms | 407 KiB | 5 Q