3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Output: g 1024 error f 1024 error f 1024 error Expected Output: g 1024 error f 1024 error g 1024 error f 1024 error */ set_error_handler('f'); $error_handler = set_error_handler('g'); trigger_error('error'); trigger_error('error'); function f($errno, $errstr) { echo __METHOD__ . ' ' . $errno . ' ' . $errstr . "\n"; } function g($errno, $errstr) { echo __METHOD__ . ' ' . $errno . ' ' . $errstr . "\n"; set_error_handler('h'); restore_error_handler(); global $error_handler; call_user_func($error_handler, $errno, $errstr); } function h($errno, $errstr) { echo __METHOD__ . ' ' . $errno . ' ' . $errstr . "\n"; }
Output for rfc.property-hooks, git.master, git.master_jit
g 1024 error f 1024 error g 1024 error f 1024 error

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:
46.33 ms | 2665 KiB | 4 Q