3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** @author: Pavlo Matsura <webxid@ukr.net> */function _dump($str, $exit = false, $var_title = 1, $var_dump = false) {if (!$var_dump) {$buff = print_r($str, true);} else {ob_start();var_dump($str);$buff = ob_get_clean();}$dumps_html = "\nDeBuging Dump\n=============\n# " . $var_title . "\n" . "===================================\n\n" . $buff . "\n" . "===================================\n\n";echo $dumps_html;if ($exit) {exit();}} $r_1 = [0=>'ALL']; $r_2 = [3=>324, 2=>434, 4=>234]; // $r_1 += $r_2; _dump(date('Y-m-d H:i:s') . ' - ' . date('Y-m-d H:i:s', time()+2 ).' 1'); /* ----------- */
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
DeBuging Dump ============= # 1 =================================== 2017-06-23 10:35:27 - 2017-06-23 10:35:29 1 ===================================