3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function wtf() { throw new \Exception('bbq'); } try { call_user_func('wtf'); } catch (\Exception $e) { echo $e->getTraceAsString(); } try { wtf(); } catch (\Exception $e) { echo $e->getTraceAsString(); }
based on UNR3r
Output for 7.0.0 - 7.2.0
#0 /in/9uhKE(8): wtf() #1 {main}#0 /in/9uhKE(15): wtf() #1 {main}
Output for 5.3.18 - 5.6.28
#0 [internal function]: wtf() #1 /in/9uhKE(8): call_user_func('wtf') #2 {main}#0 /in/9uhKE(15): wtf() #1 {main}