3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function pre($_value) { if ($_value === null || $_value === false || $_value === true) { var_dump ( $_value ); } else { echo "<pre>"; print_r ( $_value ); echo "</pre>"; } } pre(array('xx','yy','zz'));
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<pre>Array ( [0] => xx [1] => yy [2] => zz ) </pre>