3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Legacy { private $_ignore; /** * @param int $ignore */ public function __construct($ignore = E_STRICT) { $this->_ignore = $ignore; } /** * @param callable $func * @return mixed * @throws \Exception */ public function call(callable $func) { $args = func_get_args(); array_shift($args); $er = error_reporting(); error_reporting($er &~ $this->_ignore); try { $ret = call_user_func_array($func, $args); error_reporting($er); return $ret; } catch (\Exception $ex) { error_reporting($er); throw $ex; } } } var_dump(error_reporting()); (new Legacy())->call(function(){ // strict warningが発生する処理 var_dump(error_reporting()); }); var_dump(error_reporting());
Output for git.master, git.master_jit, rfc.property-hooks
int(-1) int(-2049) int(-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:
40.97 ms | 401 KiB | 8 Q