3v4l.org

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