3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array_replace( array_fill_keys( array_map( function ($x) { return sprintf("%02d", $x); }, range(1, 10, 1) ), 0), ["04" => 1, "09" => 1, "10" => 1, "01" => 1]); print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [01] => 1 [02] => 0 [03] => 0 [04] => 1 [05] => 0 [06] => 0 [07] => 0 [08] => 0 [09] => 1 [10] => 1 )

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