3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AtEase { private static $originalLevel = false; static function suppressWarnings() { self::$originalLevel = error_reporting( E_ALL & ~( E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | E_DEPRECATED | E_USER_DEPRECATED | E_STRICT ) ); } static function restoreWarnings() { error_reporting( self::$originalLevel ); } } function sameAsLoggerDebug() { AtEase::suppressWarnings(); AtEase::restoreWarnings(); } function sameAsSessionStart() { sameAsLoggerDebug(); } print "PRE er=" . error_reporting() . ' ini=' . intval( ini_get( 'error_reporting' ) ) . "\n"; @sameAsSessionStart(); print "POST er=" . error_reporting() . ' ini=' . intval( ini_get( 'error_reporting' ) ) . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
PRE er=-1 ini=-1 POST er=-1 ini=4437

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:
25.47 ms | 405 KiB | 5 Q