3v4l.org

run code in 300+ PHP versions simultaneously
<?php function some_lib( $auth ) { throw new Exception( 'Some error' ); } function my_code( #[\SensitiveParameter] $password ) { some_lib( $password ); } try { my_code('hunter2'); } catch ( Throwable $e ) { var_dump( $e->getTrace() ); }
Output for git.master_jit, git.master
array(2) { [0]=> array(4) { ["file"]=> string(9) "/in/VQhiC" ["line"]=> int(11) ["function"]=> string(8) "some_lib" ["args"]=> array(1) { [0]=> string(7) "hunter2" } } [1]=> array(4) { ["file"]=> string(9) "/in/VQhiC" ["line"]=> int(15) ["function"]=> string(7) "my_code" ["args"]=> array(1) { [0]=> object(SensitiveParameterValue)#2 (0) { } } } }

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