3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace f; function test() { test2(); } if (version_compare('5.4', PHP_VERSION) < 1) { function test2() { print_r(getnext(debug_backtrace(0, 2))); } } else { function test2() { print_r(getnext(debug_backtrace(0))); } } function getnext($a) { return current(array_slice($a, 1, 1, true)); } for ($i = 0; $i <= 5000; $i++) { test(); }

Abusive script

This script was stopped while abusing our resources