3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $e = new Exception('lol'); $e2 = new Exception($e); var_dump($e2->getMessage());
based on ksiGD

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
string(52) "Exception: lol in /in/L2iON:3 Stack trace: #0 {main}"
Output for Arrow functions
string(52) "Exception: lol in /in/L2iON:3 Stack trace: #0 {main}"

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