3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $outer = function () { echo "Outer\n"; $times = 0; $inner = function () use ( $times, &$inner ) { echo "Inner : ${times}\n"; $times++; if ( $times <= 2 ){ $inner(); } }; return $inner; }; $inner = $outer(); $inner(); ?>

Abusive script

This script was stopped while abusing our resources