3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func($input) { static $count = 0; echo (++$count)."\n"; return preg_replace_callback('/YO\_\{(.*?)\}/s', 'func', $input); } $input = <<<'EOD' YO_{ YO_{ YO_{ McDonalds. } } } EOD; echo func($input);

Abusive script

This script was stopped while abusing our resources


preferences:
230.61 ms | 10875 KiB | 5 Q