3v4l.org

run code in 300+ PHP versions simultaneously
<?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();}} $array = array(23 => 100, 57 => "red"); _dump(array_keys($array)); /* ----------- */
Output for git.master, git.master_jit, rfc.property-hooks
DeBuging Dump ============= # 1 =================================== Array ( [0] => 23 [1] => 57 ) ===================================

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:
46.81 ms | 401 KiB | 8 Q