3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = function(string $user, string $pass) { throw new Exception(); }; try { $function("secrets", "arewrong"); } catch (\Throwable $e) { var_dump($e->getTrace()[0]); } ini_set("zend.exception_ignore_args", 1); try { $function("secrets", "arewrong"); } catch (\Throwable $e) { var_dump($e->getTrace()[0]); }
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["file"]=> string(9) "/in/CS8S9" ["line"]=> int(8) ["function"]=> string(9) "{closure}" ["args"]=> array(2) { [0]=> string(7) "secrets" [1]=> string(8) "arewrong" } } array(3) { ["file"]=> string(9) "/in/CS8S9" ["line"]=> int(16) ["function"]=> string(9) "{closure}" }

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:
104.49 ms | 406 KiB | 5 Q