3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $e = new Exception (); $stack = $e -> getTrace (); print_r($stack); $exclude = 'foo.php'; while (isset ($stack [0]) && ($exclude === substr ($stack [0] ['file'], -strlen($exclude)) || 'error_handler' === $stack [0] ['function'])) { array_shift ($stack); }
based on JaSTQ
Output for 5.5.0 - 7.3.0rc4
Array ( )