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"; $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 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0: ob_0 1: ob_1 2: ob_2