3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_cb( $a ) { return 'AAA' . PHP_EOL . $a . 'BBB' . PHP_EOL; } function my_cb2( $a ) { if ( $a === 'XXX' ) { return false; } if ( $a === '' ) { $a = 'EMPTY'; } return 'CCC' . PHP_EOL . $a . 'DDD' . PHP_EOL; } ob_start( 'my_cb', 0 ); ob_start( 'my_cb2', 0 ); echo "XXX"; ob_flush(); #var_dump( ob_get_status( true ) ); echo "ONE" . PHP_EOL; ob_flush(); echo "TWO" . PHP_EOL; ob_flush();
Output for git.master, git.master_jit
AAA XXXONE TWO BBB

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:
77.08 ms | 405 KiB | 5 Q