3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); echo "ob_0"; ob_start(); echo "ob_1"; ob_start(); echo "ob_2"; echo "\n"; print_r(ob_get_status(true)); $ob2 = ob_get_clean(); $ob1 = ob_get_clean(); $ob0 = ob_get_clean(); echo "0: ".$ob0."\n"; echo "1: ".$ob1."\n"; echo "2: ".$ob2."\n";
Output for 5.4.0 - 7.1.0
0: ob_0 1: ob_1 2: ob_2 Array ( [0] => Array ( [name] => default output handler [type] => 0 [flags] => 112 [level] => 0 [chunk_size] => 0 [buffer_size] => 16384 [buffer_used] => 4 ) [1] => Array ( [name] => default output handler [type] => 0 [flags] => 112 [level] => 1 [chunk_size] => 0 [buffer_size] => 16384 [buffer_used] => 4 ) [2] => Array ( [name] => default output handler [type] => 0 [flags] => 112 [level] => 2 [chunk_size] => 0 [buffer_size] => 16384 [buffer_used] => 5 ) )
Output for 4.3.0 - 5.3.29
0: ob_0 1: ob_1 2: ob_2 Array ( [0] => Array ( [chunk_size] => 0 [size] => 40960 [block_size] => 10240 [type] => 1 [status] => 0 [name] => default output handler [del] => 1 ) [1] => Array ( [chunk_size] => 0 [size] => 40960 [block_size] => 10240 [type] => 1 [status] => 0 [name] => default output handler [del] => 1 ) [2] => Array ( [chunk_size] => 0 [size] => 40960 [block_size] => 10240 [type] => 1 [status] => 0 [name] => default output handler [del] => 1 ) )