3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler($errno, $errstr) { var_dump($errno); return false; } if (version_compare(PHP_VERSION, '5.0.0', '<')) { set_error_handler('handler'); } else { set_error_handler('handler', ~0); } function test($string) { $string = 'bar'; } $a = 'foo'; $val = 'test'; eval($val.'(&$a);'); function_exists('error_get_last') && var_dump(error_get_last());
Output for git.master, git.master_jit, rfc.property-hooks
Parse error: syntax error, unexpected token "&" in /in/Bph5Z(18) : eval()'d code on line 1
Process exited with code 255.

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:
35.9 ms | 401 KiB | 8 Q