3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = -1; function callback($output) { global $buffer; $buffer = $output; return $output.'r'; } ob_start('callback'); echo 'hello'; print_r(ob_get_status()); $a = ob_get_contents(); ob_get_clean(); echo $a; var_dump($buffer);
Output for git.master, git.master_jit, rfc.property-hooks
helloArray ( [name] => callback [type] => 1 [flags] => 113 [level] => 0 [chunk_size] => 0 [buffer_size] => 16384 [buffer_used] => 5 ) string(162) "helloArray ( [name] => callback [type] => 1 [flags] => 113 [level] => 0 [chunk_size] => 0 [buffer_size] => 16384 [buffer_used] => 5 ) "

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
50.93 ms | 402 KiB | 8 Q